Streamline Newsletter Below Header Widget on All Pages

Community Forums Forums Design Tips and Tricks Streamline Newsletter Below Header Widget on All Pages

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  RobG 1 year, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #51246

    Erica Mueller
    Participant
    Post count: 18

    I had a client, using the Streamline child theme, ask about showing the below header Newsletter widget on all pages/posts, not just the home page. I checked here and it seems no one has documented it, so I wanted to go ahead and do that for anyone else who may be curious!

    In your functions.php file, find the following code:

    
    /** 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">',
       ) );
    }
    

    You just need to comment out the following two lines, like so:

    
      //if ( ! is_home() )
           //return;
    

    WordPress Manipulator

    http://www.incredibleinfant.com
    #51349

    RobG
    Participant
    Post count: 1055

    Hello Erica, thanks so much for sharing your findings that is very kind of you I’m sure someone will be asking this question….


    To speed up the process please post the link to the website in question.

    We recommend using Firebug to view source codes http://getfirebug.com/

    RobGoss WordPress Developer
    We build WordPress websites for your business or personal goals
    http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgoss

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.