• Resolved katkacyt

    (@katkacyt)


    Hi,
    I’m using WP Mobile menu, and all works great, but I just don’t know how to hide it on one particular page..
    I’ve tried some solutions found on internet – to hide it with css based on a page id number, but I don’t know which class / id of menu i should use, I tried:

    .page-id-7525 #main-nav {
    	display: none;
    }

    but it doesn’t work
    Could you please help to solve it?
    Kind regards

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rui Guerreiro

    (@takanakui)

    Hi @katkacyt,

    Try the CSS below

    body.page-id-7525 {
       padding-top: 0px!important;
    
    }
    
    body.page-id-7525 .mob-menu-header-holder {
       display: none;
    }

    Clear the cache and test again. Let me know the result.

    Thread Starter katkacyt

    (@katkacyt)

    Hello Rui

    I tried, cleaned the cache and tested in incognito mode, but the menu is still there ??

    Plugin Author Rui Guerreiro

    (@takanakui)

    Looking at the body of the page it seems that something (plugin) is removing the page id class. It’s necessary to target a class that only exists in that page. If you are using a page builder try to add a specific class only in that page and adapt the code I provided.

    Thread Starter katkacyt

    (@katkacyt)

    Thanks for investigating for me!
    I changed the code and used class cleanpage that I use for page without menu, and it works perfect
    Thanks again!!

    Plugin Author Rui Guerreiro

    (@takanakui)

    No problem. I’m glad it worked.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘hide a mobile menu on one particular page’ is closed to new replies.