• 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

Adding "Welcome Text" widget to LifeStyle Pro Theme

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 › General Discussion › Adding "Welcome Text" widget to LifeStyle Pro Theme

This topic is: resolved

Tagged: lifestyle Pro, Welcome widget home page

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 5 months ago by digitgirl2.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 1, 2014 at 3:08 pm #88045
    digitgirl2
    Member

    Hello,

    I'd like to add a welcome text area above the posts on home page.

    I tried adding a "text" to the Home top widget, but when I did this the post disappeared from home page.

    Thanks for the help.

    Robin


    http://www.CPRMedia.net | WordPress Design

    http://ricostudios.com/USAuctions/
    February 1, 2014 at 5:21 pm #88073
    nutsandbolts
    Member

    Lifestyle Pro is set to either (1) display a widgetized homepage (if you put anything into the home widget areas) or (2) display blog posts like normal (if there's nothing in the home widget areas). If you want to show blog posts but would like the home top widget to display, you'll need to do this:

    - Rename front-page.php in your child theme folder to something like front-page-old.php. That will take out the widget areas for the homepage and prevent them from overriding your blog posts.

    - Paste the following into functions.php (be sure to come to the forum to get this code - if you copy and paste from the email notification it will break your site):

    //* Hook Home Top widget area before the loop
    add_action( 'genesis_before_loop', 'lifestyle_home_top_widget' );
    function lifestyle_home_top_widget() {
        if ( is_home() ) {
        genesis_widget_area( 'home-top', array(
    		'before' => '<div class="home-top widget-area"><div class="wrap">',
    		'after' => '</div></div>',
        ) );
    } }
    
    //* Register widget areas
    genesis_register_sidebar( array(
    	'id'          => 'home-top',
    	'name'        => __( 'Home - Top', 'lifestyle' ),
    	'description' => __( 'This is the top section of the homepage.', 'lifestyle' ),
    ) );

    That will give you a Home Top widget area but also allow blog posts to show under it. Hope that helps!


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    February 2, 2014 at 12:33 pm #88201
    digitgirl2
    Member

    Thanks! This is exactly what I needed. Worked like a charm.


    http://www.CPRMedia.net | WordPress Design

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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