Tagged: Zen menu logic
-
AuthorPosts
-
February 29, 2016 at 6:35 am #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!
February 29, 2016 at 8:17 am #590592I’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
February 29, 2016 at 11:51 pm #591241Hi!
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!
JosueMarch 1, 2016 at 3:20 am #591287Thanks 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
March 3, 2016 at 11:53 am #592570Hey!
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!
IsmaelNovember 29, 2018 at 10:39 pm #1039162I’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?
December 3, 2018 at 4:48 am #1040097Hi,
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,
IsmaelDecember 7, 2018 at 11:14 pm #1042242Still 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?
December 10, 2018 at 5:43 am #1042899Hi,
The header in the page “brochure” is already sticky. How did you fixed it?
Best regards,
IsmaelDecember 10, 2018 at 6:12 pm #1043232I’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.
December 13, 2018 at 6:11 am #1044707Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.