<?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: Need help with rogue nav bar flashing when refreshing on mobile in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Need-help-with-rogue-nav-bar-flashing-when-refreshing-on-mobile/m-p/253289#M11030</link>
    <description>&lt;P&gt;Thanks for the reply, AJ! It did put me on the right track. I ended up putting this class in place of the one you suggested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* Hide menu on mobile when page first loads */
  .custom-menu-primary .hs-menu-wrapper,
  .custom-menu-primary .hs-menu-children-wrapper{
    display: none;
  }&lt;/PRE&gt;&lt;P&gt;It seems this class didn't target the right selector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;.custom-menu-primary {
   display:none;
}&lt;/PRE&gt;&lt;P&gt;It seems to be working though, so I really appreciate the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Greg&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2019 03:26:22 GMT</pubDate>
    <dc:creator>snydes27</dc:creator>
    <dc:date>2019-02-15T03:26:22Z</dc:date>
    <item>
      <title>Need help with rogue nav bar flashing when refreshing on mobile</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Need-help-with-rogue-nav-bar-flashing-when-refreshing-on-mobile/m-p/253227#M11026</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble finding and eliminating an old mobile nav bar which shows when our homepage is refreshed while viewing on mobile or tabler sized device. I did not write the code for this nav bar, and I have looked through the js and css files which are attached to the page and none of them seem to be causing this to show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The nav bar which flashes is not the one which is being used although they may be overlapping each other and may not be noticeable since they are styled the same way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is our site globalexperiences.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Greg&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 21:27:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Need-help-with-rogue-nav-bar-flashing-when-refreshing-on-mobile/m-p/253227#M11026</guid>
      <dc:creator>snydes27</dc:creator>
      <dc:date>2019-02-14T21:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with rogue nav bar flashing when refreshing on mobile</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Need-help-with-rogue-nav-bar-flashing-when-refreshing-on-mobile/m-p/253269#M11028</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/85148"&gt;@snydes27&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It might be caused by your CSS. I am noticing in your theme CSS&amp;nbsp;inside of Section 3 "Main Navigation" you have the following media query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(note, the menu flashing is the menu you are using, it's just the JS hasn't&amp;nbsp;fired yet to add in the toggles for the submenus so that's why it looks different)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;@media (max-width: 991px) {
    /* Variables
     ========================================================================== *//* Set Mobile Menu Background Color */ /* Set Link Color */ /* Set Link Hover Color */ /*
    * Menu Reset
    *
    * Remove styling from desktop version of custom-menu-primary. Place any
    * additional CSS you want removed from the mobile menu in this reset
    */&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;.custom-menu-primary&lt;/FONT&gt;, .custom-menu-primary .hs-menu-wrapper &amp;gt; ul, .custom-menu-primary .hs-menu-wrapper &amp;gt; ul li, .custom-menu-primary .hs-menu-wrapper &amp;gt; ul li a {
        &lt;FONT color="#FF0000"&gt;display: block;&lt;/FONT&gt;
        float: none;
        position: static;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        padding: 0px;
        margin: 0px;
        background-image: none;
        background-color: transparent;
        border: 0px;
        -webkit-border-radius: 0px;
        -moz-border-radius: 0px;
        border-radius: 0px;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        max-width: none;
        width: 100%;
        height: auto;
        line-height: 1;
        font-weight: normal;
        text-decoration: none;
        text-indent: 0px;
        text-align: left;
        color: #ffffff;
    }&lt;/PRE&gt;&lt;P&gt;the first class you are referencing appears to be causing the menu to briefly show while a few more lines down in your CSS you then have it display none. I would take this first class off of there and instead try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;@media (max-width: 991px) {
    /* Variables
     ========================================================================== *//* Set Mobile Menu Background Color */ /* Set Link Color */ /* Set Link Hover Color */ /*
    * Menu Reset
    *
    * Remove styling from desktop version of custom-menu-primary. Place any
    * additional CSS you want removed from the mobile menu in this reset
    */

&lt;FONT color="#FF0000"&gt;.custom-menu-primary {
   display:none;
}&lt;/FONT&gt;
.custom-menu-primary .hs-menu-wrapper &amp;gt; ul, .custom-menu-primary .hs-menu-wrapper &amp;gt; ul li, .custom-menu-primary .hs-menu-wrapper &amp;gt; ul li a {
        display: block;
        float: none;
        position: static;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        padding: 0px;
        margin: 0px;
        background-image: none;
        background-color: transparent;
        border: 0px;
        -webkit-border-radius: 0px;
        -moz-border-radius: 0px;
        border-radius: 0px;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        max-width: none;
        width: 100%;
        height: auto;
        line-height: 1;
        font-weight: normal;
        text-decoration: none;
        text-indent: 0px;
        text-align: left;
        color: #ffffff;
    }&lt;/PRE&gt;&lt;P&gt;this should cause the element housing the nav to not be displayed by default and then once your JS injects the mobile button/toggle, you should then be good to go as that will be toggling the display: block/none style inline which would override this class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully, this helps point you in the right direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-AJ&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 00:28:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Need-help-with-rogue-nav-bar-flashing-when-refreshing-on-mobile/m-p/253269#M11028</guid>
      <dc:creator>AJLaPorte_diagr</dc:creator>
      <dc:date>2019-02-15T00:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with rogue nav bar flashing when refreshing on mobile</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Need-help-with-rogue-nav-bar-flashing-when-refreshing-on-mobile/m-p/253289#M11030</link>
      <description>&lt;P&gt;Thanks for the reply, AJ! It did put me on the right track. I ended up putting this class in place of the one you suggested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* Hide menu on mobile when page first loads */
  .custom-menu-primary .hs-menu-wrapper,
  .custom-menu-primary .hs-menu-children-wrapper{
    display: none;
  }&lt;/PRE&gt;&lt;P&gt;It seems this class didn't target the right selector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;.custom-menu-primary {
   display:none;
}&lt;/PRE&gt;&lt;P&gt;It seems to be working though, so I really appreciate the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Greg&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 03:26:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Need-help-with-rogue-nav-bar-flashing-when-refreshing-on-mobile/m-p/253289#M11030</guid>
      <dc:creator>snydes27</dc:creator>
      <dc:date>2019-02-15T03:26:22Z</dc:date>
    </item>
  </channel>
</rss>

