Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1251664

    Hello,

    i have a problem with setting up burger menus for mobile view.

    I have two main menus. One is used for the main page and several other pages and one menu which is designed for one specific page called Versorgungswerke.
    With the plugin Different menus in different pages i have assigned these two menus to the respective pages.

    For desktop use everything is fine and works correctly.

    But i can’t do the same for the burger menus for mobile visitors. So on the page Versorgungswerke the main menu is shown which should only be visible on the other pages.

    How can I arrange to show the menu Versorgungswerke on the corresponding page for desktop AND mobile visitors?

    Thanks in advance,
    Lucas

    • This topic was modified 4 years, 2 months ago by Kreshnak.
    #1252776

    Hey Kreshnak,

    Thank you for the inquiry.

    We are not really sure how the plugin assigns a different menu to other pages but it looks like it switches the menu in the front end because the theme still converts the default menu to the mobile version. Have you tried using the following plugin instead?

    // https://wordpress.org/plugins/if-menu/
    // https://wordpress.org/plugins/menu-items-visibility-control/

    Best regards,
    Ismael

    #1252777

    Hey Kreshnak,

    Thank you for the inquiry.

    We are not really sure how the plugin assigns a different menu to other pages but it looks like it switches the menu in the front end because the theme still converts the default menu to the mobile version. Have you tried using the following plugin instead?

    // https://wordpress.org/plugins/if-menu/
    // https://wordpress.org/plugins/menu-items-visibility-control/

    Best regards,
    Ismael

    #1252778

    Hey Kreshnak,

    Thank you for the inquiry.

    We are not really sure how the plugin assigns a different menu to other pages but it looks like it switches the menu in the front end because the theme still converts the default menu to the mobile version. Have you tried using the following plugin instead?

    // https://wordpress.org/plugins/if-menu/
    // https://wordpress.org/plugins/menu-items-visibility-control/

    Best regards,
    Ismael

    #1252990

    Hello Ismael,

    i have tried to use the plugin Menu Items Visibility Control now.

    I have used a tutorial i have found here: Add menus to wordpress.
    I added

    function register_my_menu() {
        register_nav_menu('new-menu',__( 'Landing_Page_Menu' ));
    }
    add_action( 'init', 'register_my_menu' );

    to my functions.php to create a new menu and it appears successfully in my menu selection tab.

    I have further added the following code to my sidebar.php:
    <?php wp_nav_menu( array( 'theme_location' => 'Landing_Page_Menu' ) ); ?>

    to make the landing page menu visible in the sidebar, like my main menu on the other pages.

    I have then added the visibility logic for the plugin is_page( 562 ) to show the menu items from the landing page menu only on page id 562 which is the landing page. I have added the same logic to my other pages with is_page( array( 126, 3, 148 ) ).
    This visibility logic is working for the main menu but not for the landing page menu.

    The result is that the landing page menu isn’t visible on the page, the main menu isn’t visible either due to the visibility logic.

    So the problem should be something in the code that doesn’t make the landing page menu visible or put it in the right place so far.

    Thanks in advance!
    Best regards, Lucas

    • This reply was modified 4 years, 2 months ago by Kreshnak.
    #1254354

    Hi,

    Thank you for the update.

    The result is that the landing page menu isn’t visible on the page, the main menu isn’t visible either due to the visibility logic.

    Why did you have to create or register a new menu, and is the issue happening only on mobile view? We recommended the plugins above so that you could control the visibility of the menu items in the main menu, or the default menu from the theme. We did not know that you are planning to create or add an extra menu in the sidebar.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.