• Resolved pheijn

    (@pheijn)


    I use a membership plugin and would like to disable the responsive menu on the login page. When logged in, the menu should be visible on all pages. Is it possible to disable the menu on a specific page?

    Regards,
    Peter

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor responsivemenu

    (@responsivemenu)

    Hi Peter,

    Sure, using the shortcode you can insert it only on pages you need. You can easily adapt the examples on the below page:

    https://responsive.menu/faq/how-do-i-show-different-menus-on-different-pages/

    All the best

    Thread Starter pheijn

    (@pheijn)

    Thanks for your swift reply. I now use the shortcode on all my pages – except the login page – however the menu is not visible for a single post, multiple post (category for example) or search results. How can I solve this?

    Regards,
    Peter

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hi there,

    I can’t answer that question I’m afraid as I don’t know your setup.

    Are you placing the shortcode in your header.php file in which case it should be picked up by all your pages or are you adding it in individual template files, in which case you need to ensure it is on all of them.

    Your web developer would be the best person to speak to as they will know the architecture of your site better than I ever could.

    All the best

    Thread Starter pheijn

    (@pheijn)

    Thanks for your reply. I have added a code snippet to my header.php file and tried to exclude one page:
    <?php if(!is_page(2099)) { ?>
    <?php echo do_shortcode(‘[responsive_menu_pro]’); ?>
    <?php } ?>

    The code snippet works; the hamburger button shows up on all pages except the login page however when I click on the button nothing happens.

    Any clues?

    Cheers,
    Peter

    Thread Starter pheijn

    (@pheijn)

    Hi,

    Solved the issue. I had added the shortcode also to the individual pages. Now the shortcode is only in the header.php and it works!

    Cheers,
    Peter

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hey there,

    Great news and thanks for letting me know!

    All the best

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Exclude menu for just one page’ is closed to new replies.