-
Notifications
You must be signed in to change notification settings - Fork 59
How to disable Header Footer on specific page
Nikhil edited this page Jun 4, 2018
·
3 revisions
There is a filter in the plugin that you can use to achieve this –
function your_prefix_hide_header_footer_markup_on_page( $status ) {
// 130 is the ID of the page where you want to disale the footer.
if ( 130 == get_the_id() ) {
$status = false;
}
return $status;
}
add_filter( 'enable_hfe_render_footer', 'your_prefix_hide_header_footer_markup_on_page' );
add_filter( 'enable_hfe_render_header', 'your_prefix_hide_header_footer_markup_on_page' );
Here change the ID 130 to the ID of your page that you want to disable the footer on.
Astra Pro Provides this functionality if your are using the Astra theme using it’s powerful target settings. With that, you can fine-tune the display settings where you want to display/hide specific header/footer.