Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1234485

    Hi all,
    a previous stable install of enfold, which included the “Menu by user role” plugin worked successfully for the last 3-4 years.
    a recent change of servers prompted an overall update of wordpress, enfold and all associated plugins to the latest versions.

    site is now failing to show the mobile menu when triggered at 1515px screen width. Custom CSS code triggers at that width and is included below…

    
    @media only screen and (max-width: 1515px) {
    		.html_mobile_menu_tablet .main_menu , .html_mobile_menu_tablet #header_main_alternate{display:none;}
    		.html_mobile_menu_tablet .container #advanced_menu_toggle, .html_mobile_menu_tablet #advanced_menu_hide{display:block;}
    		.html_mobile_menu_tablet #mobile-advanced{display:block;}
    	}
    

    A check of all plugins shows that this only occurs when the “Menu by user role” plugin is active.
    “Menu by user role” plugin does not impact menu being displayed at resolutions above 1515px.

    hoping you may be able to provide some guidance as to why Enfold correctly displays the menu at full screen widths, but not below the responsive breakpoints width.

    I’ve included an admin level login and site address in the private content below.

    Many thanks,
    Paul

    • This topic was modified 1 week, 1 day ago by  wildrova. Reason: spelling
    #1234804

    Hi Paul,

    Please try this CSS instead:

    @media only screen and (max-width: 1515px) {
      nav.main_menu {
        display: block !important;
      }
      #avia-menu .menu-item {
        display: none;
      }
      .av-burger-menu-main.menu-item-avia-special {
        display: block;
      }
    }
    

    Best regards,
    Rikard

    #1234818

    Rikard,
    thanks for the quick reply and the code…
    unfortunately it hasn’t fixed the issue.

    I think it has something to do with how enfold and the Menu by user role plugin are interacting.

    With the plugin activated:
    – different menus are generated depending on the logged in users role
    – at ‘full screen’ the correct menu is displayed for that users role
    – at display widths under 1515px, the full screen menu disappears, however the hamburger menu is not generated.

    With the plugin deactivated:
    – only the ‘default’ menu that is automatically created and lists all pages is displayed (this is expected without the plugin)
    – at ‘full screen’ the default menu is displayed, and is no longer dependent on user role
    – at display widths under 1515px, the default menu is displayed, in the expected hamburger format.

    I’m thinking it is a CSS issue given that it occurs at the responsive break-point, however I’m unsure what or why.

    thank you for your help,
    Paul.

    #1236259

    Hi,
    Sorry for the late reply, on your “overview” page you have a lot of javascript errors in the console that point to a custom script
    2020-08-08_175838.jpg
    a javascript error can cause unexpected results, please try correcting your custom code and perhaps your plugin will work correctly.
    Right now your mobile menu is not being created, is this the plugin you are using? It is a paid plugin so I won’t be able to test it on a new install to see if the error is actually from the plugin.
    A user posted a while back that this plugin was not working, and the suggestion at the time was this plugin. Have you tried this one?

    Best regards,
    Mike

    #1236275

    Mike,
    thanks for the response. Your comments regarding the “overview” page are noted (its currently a page under development). However, i don’t think these errors are the cause, For reference, i have included login details in the private data to provide the “normal” user experience (note that these credentials don’t have admin rights.)

    By way of response to your questions / suggestions…
    “Right now your mobile menu is not being created, is this the plugin you are using? It is a paid plugin so I won’t be able to test it on a new install to see if the error is actually from the plugin.”Yes that’s the plugin. if it meant that i could solve this issue, I’d be happy to pay for an additional licence for testing purposes.

    A user posted a while back that this plugin was not working, and the suggestion at the time was this plugin. Have you tried this one? – Unfortunately this is not really a workable option, as it is not simply hiding certain menu items based on user role, but rather serving entirely different menus and menu structures.

    When the site went live 2-3 years ago, Enfold and the plugin played nicely together, so i’m not sure what changed.
    Thanks for your ongoing assistance,

    Regards,
    Paul

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.