Hello,
in the options of the header, in the tab “header behavior”, I selected the first options, so that the header is fixed on the top of the pages.
Now, just for one specific page of my site I would like to deselect this option. How can I do? Thank you.
Hi,
Do you want to hide the header for that particular page? If so then please post a link to it so that we can have a closer look at it.
Best regards,
Rikarad
you had to know your page id ( in my example here page-id-3 ) of this page
and if the header scrolls away – it does not make sence to have shrinking too – so
put this to your child-theme functions.php:
add_filter('avf_header_setting_filter', 'avf_header_not_sticky', 50, 1);
function avf_header_not_sticky($header_settings) {
if ( is_page(3) ) {
$header_settings['header_sticky'] = "";
$header_settings['header_shrinking'] = "";
}
return $header_settings;
}
if you have more than one page where you like to change it just set the if clause to an array f.e.:
if ( is_page( array( 3, 18, 303, 500 ))) {
Thank You!
Hi maurekinski,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria