I am attempting a relatively simple modification of code provided by Woocommerce to remove the handheld navigation bar on a single page of my site with the slug register.
The code snippet provided is:
add_action( 'init', 'jk_remove_storefront_handheld_footer_bar' );
function jk_remove_storefront_handheld_footer_bar() {
remove_action( 'storefront_footer', 'storefront_handheld_footer_bar', 999 );
}
I want to remove the menu only for a single page, so I tried to use the is_page hook.
add_action( 'init', 'remove_storefront_handheld_footer_bar' );
function remove_storefront_handheld_footer_bar() {
if (is_page( $page = 'register' )){
remove_action( 'storefront_footer', 'storefront_handheld_footer_bar', 999 );
}
}
However, this does not remove the handheld menu. If I remove my is_page logic, then the menu disappears but that is not the functionality I need.