• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

ltucker7

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 7, 2016 at 1:01 pm in reply to: Exclude after header hook on certain pages #192771
    ltucker7
    Participant

    Thank 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 #192718
    ltucker7
    Participant

    Also, 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 #192717
    ltucker7
    Participant

    Victor 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.)

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble