• 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 second widget row to Outreach Pro

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 › Adding second widget row to Outreach Pro

This topic is: resolved

Tagged: Outreach Pro

  • This topic has 7 replies, 2 voices, and was last updated 9 years ago by Brad Dalton.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • June 27, 2016 at 8:32 am #188377
    Giuljo
    Member

    My client wants a second row of 4 widgets below the first row. I have succeeded in registering a second row in the admin panel but it doesn't show up on the landing page. My edits were as follows:

    functions.php

    // add second row of widgets to landing page
    function outreach_home_bottom_widgets() {
    	
    	genesis_widget_area( 'home-bottom2', array(
    		'before' => '<div class="home-bottom2 widget-area"><div class="wrap">',
    		'after'  => '</div></div>',
    	) );
    
    }

    style.css

    /* for home bottom 2  */
    .home-bottom2 {
    	background-color: #fff;
    	padding-top: 60px;
    }
    
    .home-bottom2 .widget {
    	float: left;
    	margin-left: 2.564102564102564%;
    	width: 23.076923076923077%;
    }
    
    .home-bottom2 .widget:nth-child(4n+1) {
    	clear: both;
    	margin-left: 0;
    }
    
    .home-bottom2 .featured-content img {
    	-webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    	-moz-box-shadow:    1px 1px 4px rgba(0, 0, 0, 0.4);
    	box-shadow:         1px 1px 4px rgba(0, 0, 0, 0.4);
    }
    
    .home-bottom2 .widget-title {
    	color: #333;
    	font-weight: 700;
    }
    

    page_landing.php

    // add second row of widgets to landing page
    function outreach_home_bottom_widgets() {
    	
    	genesis_widget_area( 'home-bottom2', array(
    		'before' => '<div class="home-bottom2 widget-area"><div class="wrap">',
    		'after'  => '</div></div>',
    	) );
    
    }

    I did see another topic on this but the code referenced there looks nothing like my files. It seems like I'm missing something on the landing page but I can't figure out what. Would greatly appreciate any help is solving this.

    June 27, 2016 at 9:04 am #188379
    Brad Dalton
    Participant

    No need to changer the div class.

    Make sure your function name is unique, and your widget i.d is unique and duplicate the code.

    Your functions file code should only register the widget


    Tutorials for StudioPress Themes.

    June 27, 2016 at 9:25 am #188381
    Giuljo
    Member

    The widget ID is unique. The widget is registered. I am able to add content on the back end. It's just not showing up on the landing page. The landing page is only showing one row.

    June 27, 2016 at 9:30 am #188382
    Brad Dalton
    Participant

    You mean the front-page.php file?

    Post your code in a Github gist and link to it from here please.


    Tutorials for StudioPress Themes.

    June 27, 2016 at 10:04 am #188384
    Giuljo
    Member

    I've posted the code for all 4 files that I edited:




    I placed comments in caps for the sections I added.

    Thank you so much.

    June 27, 2016 at 10:59 am #188391
    Brad Dalton
    Participant

    Missing the hook

    add_action( 'genesis_before_footer', 'outreach_home_bottom2_widgets', 12 );
    

    Unless you plan on styling the custom widget differently, you can use the same class

    'before' => '<div class="home-bottom widget-area"><div class="wrap">',
    

    Tutorials for StudioPress Themes.

    June 27, 2016 at 11:10 am #188394
    Giuljo
    Member

    Perfect! It's working now. I greatly appreciate your help with this. I suspected it would end up coming down to 1 line of code missing. 😀

    June 27, 2016 at 11:12 am #188395
    Brad Dalton
    Participant

    Here's more about how add_action and action hooks work.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Adding second widget row to Outreach Pro’ is closed to new 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