• 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

Home Page Widget with Multiple Columns

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 › Home Page Widget with Multiple Columns

This topic is: not resolved

Tagged: multiple columns

  • This topic has 6 replies, 3 voices, and was last updated 7 years, 4 months ago by bigbluesquid.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • April 16, 2017 at 11:06 pm #204860
    webhands
    Member

    I am trying to customize the Genesis Sample theme by adding a 3 column widget to the home page right after the content area. I was able to add the widget by adding the code below to the functions.php file, but I can't find any examples on how to divide it into 3 columns, so I can display 3 featured pages (using the Genesis Featured page plug-in). The 3 featured pages now display in 3 rows. I want them to display in 3 columns.

    Any help would be appreciated.
    Thanks -
    Phil

    genesis_register_sidebar( array(
    'id' => 'home-features',
    'name' => __( 'Home Features', 'hatch-medical' ),
    'description' => __( 'Widget area for various home page features.', 'hatch-medical' ),
    ) );

    add_action( 'genesis_after_entry_content', 'add_home_features' );

    function add_home_features() {
    if( is_front_page() ) {
    genesis_widget_area( 'home-features', array(
    'before' => '<div class="home-features">',
    'after' => '</div>',
    ) );
    }
    }

    http://www.clientdesigns.com/hatch/
    April 17, 2017 at 12:15 am #204863
    Brad Dalton
    Participant

    You can use column classes which is already built into Genesis

    Or did you want to display 3 widgets within 1 widget area in columns?


    Tutorials for StudioPress Themes.

    April 17, 2017 at 9:31 am #204881
    webhands
    Member

    Thanks for your reply, Brad. Yes, I want to display 3 Genesis Featured Page widgets in 1 widget area. I have them in there now, vertically, one on top of the other, but I want them horizontally in 3 columns.

    April 17, 2017 at 9:36 am #204882
    Brad Dalton
    Participant

    Look at how its done here.

    You can inspect the widgets to grab the CSS rules.


    Tutorials for StudioPress Themes.

    April 17, 2017 at 11:39 am #204889
    Brad Dalton
    Participant

    This should work

    .home-features {
    	background-color: #fff;
    	clear: both;
    	overflow: hidden;
    	padding: 60px 30px 0;
    }
    
    .home-features .widget {
    	float: left;
    	padding: 0 2.8%;
    	width: 33.33333333333%;
    }
    
    .home-features .widget:nth-of-type(3n+1) {
    	clear: left;
    }
    

    Untested.


    Tutorials for StudioPress Themes.

    April 17, 2017 at 12:42 pm #204892
    webhands
    Member

    Thanks Brad. I'll give that a shot.

    February 8, 2018 at 4:28 am #216261
    bigbluesquid
    Member

    I found this on a search in the forum, and it worked great for me, thanks Brad.

    I've used it on the Agency Pro theme to feature three pages in a single widget, similar to the featured posts widget: https://www.iconicbiscuits.com/

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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