• I want to hide my main menu – homepage and any others.
    I have installed the plugin and entered this code
    ! is_home()
    under ‘edit plugins’ but it goes to inactive
    “Editing menu-items-visibility-control/init.php (inactive) ”

    I can’t find anywhere else obviouse that this code should go – but I’m clearly doing something wrong.
    Went to “Appearance -> Menu” but there’s nothing to help me there.
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author shazdeh

    (@shazdeh)

    After installing and activating the plugin (if you’re not sure how to do that, see: https://www.siteground.com/tutorials/wordpress/wordpress_plugins.htm), go to Appearance > Menus. Now under each menu item you’ll see an additional option called Visibility, please see screenshot: https://ovo.li/bxx6px. In that field you can enter the “condition” you want the menu to appear on, for example if you put:

    
    is_home()
    

    It means that menu item will only be display in your homepage. If you add:

    
    ! is_home()
    

    Then it will display on all your website’s pages except the homepage.

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to hdie menus – can’t work out where to put the code’ is closed to new replies.