• 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

Newsletter Section After Header

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

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Newsletter Section After Header

This topic is: not resolved

Tagged: funtions, streamline, widget

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 5 months ago by Erica Mueller.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 15, 2014 at 10:16 am #85342
    Erica Mueller
    Member

    In the funtions.php file for Streamline I figured out how to show the newsletter section (widget area) on every page, not just the home page. But, now I want to keep it from showing on the Landing Page template.

    Here's the section in my functions.php file:

    /** Add newsletter section after header */
    add_action( 'genesis_before_content_sidebar_wrap', 'streamline_newsletter' );
    function streamline_newsletter() {
      //if ( ! is_home() )
           //return;
    
       genesis_widget_area( 'newsletter', array(
           'before' => '<div class="newsletter widget-area">',
       ) );
    }

    Any help would be appreciated!!


    WordPress Manipulator

    http://incredibleinfant.com/milestone-marker/
    January 16, 2014 at 9:13 am #85497
    Robin
    Member

    If you uncomment the lines you commented and change it to:

    if( is_page_template( 'page_landing.php' ) ) {

    then on any page using that template (assuming it's named the same as what's in the folder on my computer) won't display the widget area. (source: Codex Conditional Tags)

    HTH


    I do the best I can with what I’ve got. (say hey on twitter)

    January 16, 2014 at 9:32 am #85502
    Erica Mueller
    Member

    Thank you so much! I was finally able to use the landing page template instead of full width! The ladning page was showing the signup form without the header and looked horrible. Now we have a nice landing page. 🙂

    http://incredibleinfant.com/milestone-marker/


    WordPress Manipulator

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 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