Forum Replies Created
-
AuthorPosts
-
ltucker7
ParticipantThank you so much Victor! It's perfect!
September 6, 2016 at 3:00 pm in reply to: Parallax Pro Before Header – Only show on certain pages and make fixed #192718ltucker7
ParticipantAlso, my pages are floating over top of the fixed mailing list signup. Any thoughts on solving that?
September 6, 2016 at 2:24 pm in reply to: Parallax Pro Before Header – Only show on certain pages and make fixed #192717ltucker7
ParticipantVictor and emasi, thank you so much! Both of those responses helped immensely.
I added it to the "after header" hook, and made it fixed on desktop. It's working very well. Thank you so much.
I have two additional questions for Victor's answer about the excluding pages code:
Because I'm using Paralax Pro, there isn't a page for "home", only the widget areas. How do I remove the "after header" hook on that page?
And just to confirm, the code I'm looking for here is this:
function call_to_action() { $pages_to_exclude = array('2786', '3497'); if (is_page($pages_to_exclude)) { return; } else { add_action( 'genesis_after_header', 'mailing_list_post_widget' ); function mailing_list_post_widget() { genesis_widget_area( 'mailing-list', array( 'before' => '<div class="mailing-list widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); } } }
(Those numbers in the array are my page numbers, which obviously, you can't confirm. I'm just checking to see I've understood the process correctly.)
-
AuthorPosts