Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #243292

    Robert M
    Participant

    When viewing site at screen size that changes menu to the mobile button, when i click it the dropdown menu items show up and then disappear right away. Any idea on why this is happening?

    #243293

    Robert M
    Participant
    This reply has been marked as private.
    #243309

    Darshana
    Moderator

    Hi there,

    Thanks for writing in! I see that you’re using an older version of X theme V2.3.0. This is a bug that we have identified and fixed after the X theme V2.5.0 onwards (https://theme.co/x/member/kb/solutions-to-potential-setup-issues-navigation/).

    Please refer to our Theme & Plugins update guide here at this URL (https://theme.co/x/member/kb/updating-your-theme-and-plugins/) to update your theme & plugins manually.

    Thanks!

    #244844

    Robert M
    Participant

    Is there a way to fix this without updating the theme? When I updated the theme it broke other parts of the website.

    I am using a child theme btw.

    #244881

    Nico
    Moderator

    Hi There,

    Try adding this in your Child Theme’s style.css:

    .x-navbar .desktop .x-nav>li.menu-item-has-children:hover>.sub-menu {
        display: block;
    }
    
    .x-navbar .desktop .x-nav>li.menu-item-has-children>.sub-menu {
        display: none;
    }

    Hope it works.

    Thanks.

    #244897

    Robert M
    Participant

    ok i added that and it still doesn’t work

    #245024

    Robert M
    Participant

    to elaborate. after updating it, the revolution slider disappeared, the admin bar on top disappeared, it still didn’t fix the original problem of the nav items not staying on screen when clicking the toggle.

    we have reverted back to pre update.

    so everything is working except for the navigation problem with the toggle.

    i pasted your css code into the custom css section and that had no effect.

    would you require login info to see if you can fix it that way?

    Thanks

    #245047

    Friech
    Moderator

    Hi There,

    Did you clear the cache browser’s and site after the update? Do you have a heavily modified child theme? You can add this under Custom > CSS in the Customizer for the meantime.

     @media (max-width:  979px) {
     	nav.x-nav-collapse.collapse.in {
      height: auto;
    }
    }

    Thanks!

    #245154

    Robert M
    Participant

    Thanks. You are a life saver.

    I will try refreshing cache again tomorrow. That is something I did not do.

    #245163

    Nico
    Moderator

    You’re most welcome!

    Let us know if you need anything else.

    Thanks. Have a great day! 🙂