• 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

Horizontal widgets help

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 › Horizontal widgets help

This topic is: not resolved

Tagged: horizontal, Metro, widgets

  • This topic has 1 reply, 1 voice, and was last updated 9 years, 1 month ago by osalcedo.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 30, 2014 at 2:00 pm #87872
    osalcedo
    Participant

    I would like to thank you all in advance for your help 🙂
    For the life of me, I can't get this to work...

    I'm trying to put three widget areas arranged horizontally in Metro Pro using "genesis_before_content_sidebar_wrap"
    The widgets will be arranged as follows... Coupon 1 | Sale Items | Coupon 2

    The code I used in "functions.php" and "style.css" simply isn't working.
    It keeps displaying vertically :/

    What code do you suggest I use????
    Any help would be greatly appreciated 🙂

    January 30, 2014 at 2:11 pm #87874
    osalcedo
    Participant

    I'd like to add THREE widgets area side by side, but this is what I have so far...

    I'm using the following in functions.php...

    //* Register homepage sales area area
    genesis_register_sidebar( array(
    'id' => 'sales-area',
    'name' => __( 'Sales Area', 'metro' ),
    'description' => __( 'This is the sales area widget for the homepage.', 'metro' ),
    ) );

    //* Add homepage sales area area
    add_action( 'genesis_before_content', 'custom_sales_area' );
    function custom_sales_area() {
    if ( is_page(2) )
    genesis_widget_area( 'sales-area', array(
    'before' => '<div class="sales-area">',
    'after' => '</div>',
    ) );
    }

    And in style.css...

    div.sales-area {
    overflow: auto;
    margin: 10px;
    padding: 10px;
    }

    div.sales-area .widget-wrap {
    float: left;
    width: 25%;
    padding: 2%;
    margin: 0 1%;
    }

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

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