Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #590580

    Hi Team,

    I am trying to AB test a fixed, sticky header on the page I included. How do I activate this for just the single page?

    Thank you for all your help!

    #590592

    I’d also like to change the order of the menu items on my test page. Is there a way to use a different main menu for the test page? Or another way to change the list order?

    Thanks,

    Jesse

    #591241

    Hi!

    1. It’s possible but it will require a bit of coding, header settings are sitewide but there’s a way to override then per Page, refer to:

    2. You can use a plugin like:
    https://wordpress.org/plugins/zen-menu-logic/

    Cheers!
    Josue

    #591287

    Thanks Jose! The plugin works great! I added your php from the thread you linked, and it doesn’t seem to have a option to change to a sticky header. Is that possible to add?

    Thanks,

    Jesse

    #592570

    Hey!

    Thank you for using Enfold.

    Please add this in the functions.php file:

    add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 50, 1);
    function avf_header_setting_filter_mod($header_settings) {
    	if ( is_page(3613) ) {
    		$header_settings['header_sticky'] = 'header_sticky';
    		$header_settings['header_shrinking'] = "header_shrinking";
    	}
    
    	return $header_settings;
    }
    

    Adjust the value of the is_page conditional.

    Cheers!
    Ismael

    #1039162

    I’m trying to apply the solution provided in this thread to a specific page of my site. This page is already using a unique menu which uses the Zen Menu Logic plugin to provide (compro.mum.edu/brochure). I just want this page to also use the sticky header and possibly shrinking as well. I tried Ismael’s php with ny page id (7552) but it doesn’t want to stick so I removed the code.

    Am I missing something?

    #1040097

    Hi,

    The header sticks on scroll when I use the code on my installation but it doesn’t shrink, so I adjusted it a bit. Please try it again.

    Best regards,
    Ismael

    #1042242

    Still can’t get only page ID 7552 to be sticky and scroll Ismael. (compro.mum.edu/brochure/ ) I added your code from reply #592570 above. Perhaps it’s because this page uses zen menu logic to apply a unique menu?

    #1042899

    Hi,

    The header in the page “brochure” is already sticky. How did you fixed it?

    Best regards,
    Ismael

    #1043232

    I’m trying to make that page sticky and shrinking while the rest of the site is just sticky. I haven’t figured it out yet.

    #1044707

    Hi,

    In the Enfold > Header > Header Behavior panel, enable the “sticky header” option but leave the “shrinking header” option disabled. Add this filter afterwards.

    // https://kriesi.at/support/topic/sticky-shrinking-header-on-one-page/#post-592570

    You have to adjust the page ID value in the is_page conditional tag. If it doesn’t work, disable the Enfold > Performance > File Compression settings.

    Best regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.