• 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

Design 2-column home featured widgets in Sample

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 › Design 2-column home featured widgets in Sample

This topic is: not resolved

Tagged: custom home widget

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 6 months ago by Brad Dalton.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 9, 2014 at 9:15 am #104283
    StephanieTreasure
    Member

    Hi,

    I am using the Sample theme. I need to put a 2-column home featured widget on my home/static page. I will put a video on the left and an opt-in form on the left. Then instead of a background colour, I want a uniform background image for both sides. I did some searches on Google and know that I need to register the widgets in the functions.php file first, then style them in the style sheet. Then use the widgets accordingly under Appearance-> Stylesheet. I saw this code, but am scared s&%*less of fooling around with functions.php file. So I wanted to verify my code here first. Does the code below seem right for what I want to do?

    Functions.php edit

    genesis_register_sidebar( array(
    'id' => 'featured-left',
    'name' => __( 'Featured Left', 'sample' ),
    'description' => __( 'This is the left featured section.', 'sample' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'featured-right',
    'name' => __( 'Featured Right', 'sample' ),
    'description' => __( 'This is the right featured section.', 'sample' ),
    ) );

    Stylesheet edit

    .left-featured {
    float: left;
    width: 49%;
    }
     
    .right-featured {
    float: right;
    width: 49%;
    }
     
    @media only screen and (max-width: 1023px) {
     
    .left-featured {
    float: left;
    clear: left;
    overflow: hidden;
    width: 100%;
    }
     
    .right-featured {
    float: right;
    clear: right;
    overflow: hidden;
    width: 100%;
    }
     
    }

    I am also note sure of the max width edit in the stylesheet above...

    The featured section shown on my home page right now was made with a table. NOT how I want to leave it.

    Thanks,
    Stephanie.

    http://hairlossclinic.stephanietreasure.com/
    May 9, 2014 at 6:44 pm #104356
    Brad Dalton
    Participant

    You are missing a large amount of PHP code.


    Tutorials for StudioPress Themes.

  • 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

© 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