Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1215091

    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.

    #1215387

    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

    #1215406

    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 ))) {

    #1215761

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.