<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can we use a hamburger for the main navigation? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-can-we-use-a-hamburger-for-the-main-navigation/m-p/848574#M35817</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/630412"&gt;@craigc11&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you'll need to create either a custom module or (better) a so-called &lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/global-content#global-partials" target="_blank" rel="noopener"&gt;global_partial&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The basic layout could look like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;header class="headerWrapper"&amp;gt;
&amp;lt;div class="container-fluid"&amp;gt;
&amp;lt;div class="row-fluid"&amp;gt;
&amp;lt;div class="span2"&amp;gt;
{{logo}}
&amp;lt;/div&amp;gt;
&amp;lt;nav class="span10"&amp;gt;
&amp;lt;img src="PATH-TO-BURGER-IMAGE" alt="burger icon" id="menuToggle"&amp;gt;
&amp;lt;div class="menuWrapper" id="burgerMenu"&amp;gt;
{% module "menu" path="@hubspot/menu", label="Footer Menu",
      no_wrapper=True %}
&amp;lt;/div&amp;gt;
&amp;lt;/nav&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/header&amp;gt;

{% require_js %} {# you can put this into a JS file which will be loaded on every page; jQuery required #}
&amp;lt;script&amp;gt;
$("#menuToggle").click(function () {
  $("#burgerMenu").toggleClass("visible");
});
&amp;lt;/script&amp;gt;
{% end_require_js %}

{% require_css %} {# you can put this into a CSS file which will be loaded on every page #}
&amp;lt;style&amp;gt;
#burgerMenu{
display:none
}
#burgerMenu.visible{
display:block;
}
{# MORE-CSS-STYLING #}
&amp;lt;/style&amp;gt;
{% end_require_css %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 22:27:37 GMT</pubDate>
    <dc:creator>Anton</dc:creator>
    <dc:date>2023-09-12T22:27:37Z</dc:date>
    <item>
      <title>How can we use a hamburger for the main navigation?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-can-we-use-a-hamburger-for-the-main-navigation/m-p/848206#M35808</link>
      <description>&lt;P&gt;Im looking to set up the primary navigation on Desktop as a humburger menu, similar to how it works as standard on mobile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried a few different methods, but currently I can only get it to work as a dropdown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-09-12 at 14.03.26.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/98834i20748268106F9E55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-09-12 at 14.03.26.png" alt="Screenshot 2023-09-12 at 14.03.26.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image example as to what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 13:04:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-can-we-use-a-hamburger-for-the-main-navigation/m-p/848206#M35808</guid>
      <dc:creator>craigc11</dc:creator>
      <dc:date>2023-09-12T13:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can we use a hamburger for the main navigation?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-can-we-use-a-hamburger-for-the-main-navigation/m-p/848574#M35817</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/630412"&gt;@craigc11&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you'll need to create either a custom module or (better) a so-called &lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/global-content#global-partials" target="_blank" rel="noopener"&gt;global_partial&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The basic layout could look like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;header class="headerWrapper"&amp;gt;
&amp;lt;div class="container-fluid"&amp;gt;
&amp;lt;div class="row-fluid"&amp;gt;
&amp;lt;div class="span2"&amp;gt;
{{logo}}
&amp;lt;/div&amp;gt;
&amp;lt;nav class="span10"&amp;gt;
&amp;lt;img src="PATH-TO-BURGER-IMAGE" alt="burger icon" id="menuToggle"&amp;gt;
&amp;lt;div class="menuWrapper" id="burgerMenu"&amp;gt;
{% module "menu" path="@hubspot/menu", label="Footer Menu",
      no_wrapper=True %}
&amp;lt;/div&amp;gt;
&amp;lt;/nav&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/header&amp;gt;

{% require_js %} {# you can put this into a JS file which will be loaded on every page; jQuery required #}
&amp;lt;script&amp;gt;
$("#menuToggle").click(function () {
  $("#burgerMenu").toggleClass("visible");
});
&amp;lt;/script&amp;gt;
{% end_require_js %}

{% require_css %} {# you can put this into a CSS file which will be loaded on every page #}
&amp;lt;style&amp;gt;
#burgerMenu{
display:none
}
#burgerMenu.visible{
display:block;
}
{# MORE-CSS-STYLING #}
&amp;lt;/style&amp;gt;
{% end_require_css %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 22:27:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-can-we-use-a-hamburger-for-the-main-navigation/m-p/848574#M35817</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2023-09-12T22:27:37Z</dc:date>
    </item>
  </channel>
</rss>

