• 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 home-middle widgets

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 home-middle widgets

This topic is: not resolved

Tagged: Corporate Theme, css amends, home widgets

  • This topic has 11 replies, 2 voices, and was last updated 10 years, 9 months ago by Genesis Developer.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • September 3, 2014 at 3:48 am #122541
    EmLY14
    Member

    Hi

    I am using the corporate theme for a new site, this comes as standard with three home-middle widgets. I would really like to display five on the home page.

    Has anyone done this before and would be happy to share the code with me or could you help by talking me through it as I am aware I will need to tinker with the functions.php, home.php and then the style.css files.

    Thank you in advance.

    September 3, 2014 at 4:07 am #122542
    Genesis Developer
    Member

    Can you upload the code of home.php file at pastebin.com and share the new pastebin link here?


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    September 3, 2014 at 4:42 am #122546
    EmLY14
    Member

    pastebin link - http://pastebin.com/vTsKvYSe

    Let me know if you need anything else, thank you.

    September 3, 2014 at 6:46 am #122553
    Genesis Developer
    Member

    Thank you for sharing the code. I am creating the code for you. Please add the following code in your functions.php file. Creating two new widgets area

    genesis_register_sidebar( array(
        'id'            => 'home-middle-4',
        'name'          => __( 'Home Middle #4', 'corporate' ),
        'description'   => __( 'This is a widget area that can be shown on Home Page', 'corporate' ),
    ) );
    
    genesis_register_sidebar( array(
        'id'            => 'home-middle-5',
        'name'          => __( 'Home Middle #5', 'corporate' ),
        'description'   => __( 'This is a widget area that can be shown on Home Page', 'corporate' ),
    ) );

    Also you will modify the home page code. Copy the code from here http://pastebin.com/2KLKDJRz.

    Now you'll need to adjust the CSS. Can you share your site link after adding the content of 4th and 5th widget?


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    September 3, 2014 at 6:53 am #122556
    Genesis Developer
    Member

    You can replace old CSS by this new one

    .home-middle-1,
    .home-middle-2,
    .home-middle-3,
    .home-middle-4,
    .home-middle-5{
        float: left;
        padding: 0;
        width: 17.8889%;
    }
    
    .home-middle-2,
    .home-middle-3,
    .home-middle-4,
    .home-middle-5{
      margin-left: 2.5%
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    September 3, 2014 at 7:10 am #122557
    EmLY14
    Member

    Genwrock

    I made all the code changes you sent over and on refreshing my site I now get this error

    Parse error: syntax error, unexpected '&' in /homepages/46/d539399353/htdocs/clickandbuilds/Panel2Paint/wp-content/themes/corporate/functions.php on line 66

    September 3, 2014 at 7:21 am #122558
    Genesis Developer
    Member

    Ok. Can you upload the code of functions.php file at pastebin.com?I'll look the code


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    September 3, 2014 at 7:27 am #122559
    EmLY14
    Member

    http://pastebin.com/HDkw62Bz

    September 3, 2014 at 7:35 am #122561
    Genesis Developer
    Member

    Please check once the new code here http://pastebin.com/SnfgXe7S


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    September 3, 2014 at 7:40 am #122563
    EmLY14
    Member

    It now says there is another error - Parse error: syntax error, unexpected end of file in /homepages/46/d539399353/htdocs/clickandbuilds/Panel2Paint/wp-content/themes/corporate/functions.php on line 75

    September 3, 2014 at 7:42 am #122564
    EmLY14
    Member

    I have fixed that last one myself. It has worked thank you genwrock for your help and supplying the code.

    September 3, 2014 at 7:54 am #122567
    Genesis Developer
    Member

    Great. Good news that it is working.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

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