• 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

How create 3 widget areas in one row

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 › How create 3 widget areas in one row

This topic is: not resolved

Tagged: functions.php widgets css

  • This topic has 2 replies, 3 voices, and was last updated 12 years, 5 months ago by Brad Dalton.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 8, 2014 at 1:16 pm #93956
    MrNerdy
    Member

    Similar to the 3 footer widgets in the standard Genesis theme, I would like to create 3 widget areas next to each other using the 'genesis_before_content' hook.

    I created 3 widget areas and added css-classes for each one, but they are displayed below each other and not next to each other in one line.

    How can I display the 3 widgets next to each other (300px each) ?

    Here is my example code for widget 1 (the code for 2 and 3 is the same except the numbering):

    //* Register before content widget area 1
    genesis_register_sidebar( array(
    	'id'            => 'before-content-area-1',
    	'name'          => __( 'Before Content 1', 'themename' ),
    	'description'   => __( 'This is a widget area 1 that can be placed before the content area.', 'themename' ),
    ) );
    
    //* Hook before content widget area 1
    add_action( 'genesis_before_content', 'before_content_widget_1' );
    	function before_content_widget_1 () {
    
    			if ( is_front_page())  {
    			genesis_widget_area( 'before-content-area-1', array(
    			'before' => '<div class="before-content-widget-1">',
    			'after' => '</div>',
    		) );}
    
    	}

    CSS:

    .before-content-widget-1 {
    	clear: both;
    	width: 300px;
    	text-align: justify;
    	padding: 20px;
    	padding: 2rem;
    }
    March 8, 2014 at 7:15 pm #93992
    AnitaC
    Keymaster

    Please post a link to your site. But, without seeing it - Widgets 1 and 2 would float: left and Widget 3 would float: right. But I can say for sure without seeing what you have.


    Need help with customization or troubleshooting? Reach out to me.

    March 9, 2014 at 6:05 am #94025
    Brad Dalton
    Participant

    This is how i did it http://wpsites.net/web-design/responsive-inline-header-widgets-side-by-side-in-studiopress-themes/

    You could also look at a theme like Executive Pro and see how its done as another option however that only generates 1 widget which is populated with 3.


    Tutorials for StudioPress Themes.

  • 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

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