Hide menu on particular pages Resolved Requested: 1 year and 1 week ago Is it a way to prevent the menu widget to not show in some pages?
OnPoint Plugins 1 year and 1 week ago Hi Rune, You may hide all widgets on a particular page by adding the following filters to your active theme’s function.php file. $hide_on_page = function( $show ) { // Page id to hide the widgets on. if ( get_the_ID() == 15752 ) { return false; } return $show; }; add_filter( 'advanced-sidebar-menu/menus/page/is-displayed', $hide_on_page, 999999999 ); add_filter( 'advanced-sidebar-menu/menus/category/is-displayed', $hide_on_page, 999999999 ); add_filter( 'advanced-sidebar-menu/menus/navigation/is-displayed', $hide_on_page, 999999999 ); In this example, the widgets are hidden on the page with id 15752 Have a great day! P.S. Our team is currently on holiday so responses may be limited.
Hi Rune,
You may hide all widgets on a particular page by adding the following filters to your active theme’s function.php file.
In this example, the widgets are hidden on the page with id
15752
Have a great day!
P.S. Our team is currently on holiday so responses may be limited.