• Resolved eainnem

    (@eainnem)


    Hi there,
    I am using the ShiftNav sliding menu on pages only in the members area therefore don’t want it on my main pages such as home, blog contact etc. I have used the code from your documentation:

    add_action( 'wp_head' , 'remove_shiftnav' );
    function remove_shiftnav(){
        if( is_page(array(1400, 2212, 1950, 33, 20, 2169, 2109, 6, 2, 2114, 2053))){
            remove_action( 'wp_footer', 'shiftnav_direct_injection' );
        }
    }

    However the page 1400 which is the blog does not have the menu hidden despite all of the other pages not showing. I have tried using ‘blog’ (which is the page slug) instead of the page ID but no joy. Any ideas what the problem might be?

    https://www.ads-software.com/plugins/shiftnav-responsive-mobile-menu/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Menu not hiding from all pages listed in array’ is closed to new replies.