<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Hide the menu bar until scroll]]></title><description><![CDATA[<p dir="auto">Hi Marius and Armin!</p>
<p dir="auto">really enjoying the speed I can achieve with lay theme! However I have hit a  wall.</p>
<p dir="auto">I would like to hide the menu bar, logo and menu items until the user starts scrolling. I have to admit I'm not good at jQuery, so I am a little lost.</p>
<p dir="auto">I've tried following <a href="http://laythemeforum.com/topic/1660/custom-code-for-desktop-menu-only" target="_blank" rel="noopener noreferrer nofollow ugc">this support item</a> but it only hides the menu items (currently still have the code in &lt;head&gt;) and it is a bit janky in the sense that it doesnt work until I have started scrolling back up.</p>
<p dir="auto">and I've found <a href="https://stackoverflow.com/questions/14158459/hide-div-until-scroll" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> on StackOverflow but I'm not sure how to adapt it to my page (sh*t at jQuery).</p>
<p dir="auto">My website is <a href="http://wordpress.p507516.webspaceconfig.de/" target="_blank" rel="noopener noreferrer nofollow ugc">http://wordpress.p507516.webspaceconfig.de/</a>.</p>
<p dir="auto">Thanks in advance,<br />
Darius</p>
]]></description><link>https://laythemeforum.com/topic/4126/hide-the-menu-bar-until-scroll</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 02:12:18 GMT</lastBuildDate><atom:link href="https://laythemeforum.com/topic/4126.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Mar 2019 11:09:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hide the menu bar until scroll on Thu, 21 Mar 2019 10:10:33 GMT]]></title><description><![CDATA[<p dir="auto">Dear <a class="plugin-mentions-user plugin-mentions-a" href="/user/zippitybop">@<bdi>zippitybop</bdi></a><br />
great! I hope it will work out well!</p>
<p dir="auto">Best!</p>
<p dir="auto">Marius</p>
]]></description><link>https://laythemeforum.com/post/13131</link><guid isPermaLink="true">https://laythemeforum.com/post/13131</guid><dc:creator><![CDATA[mariusjopen]]></dc:creator><pubDate>Thu, 21 Mar 2019 10:10:33 GMT</pubDate></item><item><title><![CDATA[Reply to Hide the menu bar until scroll on Wed, 20 Mar 2019 10:43:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi again Marius,</p>
<p dir="auto">I WILL try this, thanks dude!  I wanted to hide the entire white bar, logo and menu items.</p>
<p dir="auto">I'll set up another staging and see how it goes.</p>
<p dir="auto">Cheers,<br />
Darius</p>
]]></description><link>https://laythemeforum.com/post/13122</link><guid isPermaLink="true">https://laythemeforum.com/post/13122</guid><dc:creator><![CDATA[zippitybop]]></dc:creator><pubDate>Wed, 20 Mar 2019 10:43:07 GMT</pubDate></item><item><title><![CDATA[Reply to Hide the menu bar until scroll on Fri, 15 Mar 2019 12:36:44 GMT]]></title><description><![CDATA[<p dir="auto">Dear <a class="plugin-mentions-user plugin-mentions-a" href="/user/zippitybop">@<bdi>zippitybop</bdi></a><br />
you want to hide the whole white bar or only the menu in it?</p>
<p dir="auto">jQuery is not so difficult. I will help you a bit:</p>
<ol>
<li>Hide the Navigation with CSS and opacity 0<br />
<a href="https://developer.mozilla.org/de/docs/Web/CSS/opacity" target="_blank" rel="noopener noreferrer nofollow ugc">https://developer.mozilla.org/de/docs/Web/CSS/opacity</a></li>
</ol>
<pre><code>.primary {
opacity: 0;
}
</code></pre>
<ol start="2">
<li>
<p dir="auto">Make a jQuery function which gets active on scroll<br />
<a href="https://api.jquery.com/scroll/" target="_blank" rel="noopener noreferrer nofollow ugc">https://api.jquery.com/scroll/</a></p>
</li>
<li>
<p dir="auto">When you scroll you add a class to the body of the website which is called <strong>scroll</strong><br />
<a href="https://api.jquery.com/addclass/" target="_blank" rel="noopener noreferrer nofollow ugc">https://api.jquery.com/addclass/</a></p>
</li>
<li>
<p dir="auto">Write a CSS which shows the navigation when the body has the class <strong>scroll</strong></p>
</li>
</ol>
<pre><code>.scroll .primary {
opacity: 1 !important;
}
</code></pre>
<p dir="auto">That should work.<br />
If you want to be more sophisticated, you can have another look in the Stackoverflow you sent me.</p>
<p dir="auto">Best!</p>
<p dir="auto">Marius</p>
]]></description><link>https://laythemeforum.com/post/13072</link><guid isPermaLink="true">https://laythemeforum.com/post/13072</guid><dc:creator><![CDATA[mariusjopen]]></dc:creator><pubDate>Fri, 15 Mar 2019 12:36:44 GMT</pubDate></item></channel></rss>