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

    Hi there, we are using a short code as below and it works great to hide the main nav from that page. We need to include about 10 other pages this way.

    .page-id-8524 .main_menu {
    display: none;
    }

    Is there a way to list multiple ID’s in same snippet? THANKS!!!

    #570148

    Hey lobstahhhhhhh!

    Please use the code as following

    .page-id-8524 .main_menu, .page-id-59 .main_menu {
    display: none;
    }

    Cheers!
    Yigit

    #570177

    Yigit, that is great and thank you for such the fast response!

    SO, the first two id’s are hiding perfectly but the not the rest. Hmmmm, what’s wrong do you think? THANKS!!!

    The code is now:

    .page-id-8524 .main_menu, .page-id-3375 .main_menu, page-id-2811 .main_menu, page-id-2798 .main_menu, page-id-3469 .main_menu, page-id-3448 .main_menu, page-id-3467 .main_menu, page-id-3471 .main_menu{
    display: none;
    }

    #570181

    Hi!

    Your are missing a dots in front of page IDs, only first two have. Please edit your code and add dot in front of all page ID’s :)

    Regards,
    Yigit

    #570201

    Yigit, your team provides AMAZING support. This was perfect and apologize for the oversight. Thank you VERY much. It’s worked perfectly.

    #570213

    Hey!

    Thank you for your kind words. We are always happy to help :) Let us know if you have any other questions or issues and have a great weekend!

    Best regards,
    Yigit the moderatahhhh

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Hiding the main nav on multiple page IDs’ is closed to new replies.