• 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

Executive Pro – assign custom widget area to frontpage

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 › General Discussion › Executive Pro – assign custom widget area to frontpage

This topic is: not resolved

Tagged: custom, frontpage, widget area

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 11 months ago by Brad Dalton.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • October 19, 2013 at 1:02 pm #67695
    jhguynn
    Member

    I figured out how to modify functions.php to register an additional widget area ('home_bottom') to be assigned to the frontpage, and I figured out how to edit frontpage to put it there. But I can't figure out how to change the number of widget items (i.e. columns) allowed in that area from 3 (the default) to 4. How do I do that?

    October 19, 2013 at 1:07 pm #67697
    Brad Dalton
    Participant

    Paste all the code here please and link to your site.


    Tutorials for StudioPress Themes & WooCommerce.

    October 19, 2013 at 1:31 pm #67701
    jhguynn
    Member

    Okay, I think I answered my own question: I can assign a custom category or tag to the posts targeted to populate the slider, and sort them in the slider settings that way.

    Still curious if there might be another, more ninja way to do than having a special category or tag floating around. Thanks for the feedback.

    October 19, 2013 at 1:34 pm #67702
    jhguynn
    Member

    Here is the code for the modified frontpage.php:

    function executive_home_sections() {

    genesis_widget_area( 'home-slider', array(
    'before' => '<div class="home-slider widget-area">',
    'after' => '</div>',
    ) );

    genesis_widget_area( 'home-top', array(
    'before' => '<div class="home-top widget-area">',
    'after' => '</div>',
    ) );

    genesis_widget_area( 'home-middle', array(
    'before' => '<div class="home-middle widget-area">',
    'after' => '</div>',
    ) );

    genesis_widget_area( 'home-cta', array(
    'before' => '<div class="home-cta widget-area">',
    'after' => '</div>',
    ) );

    genesis_widget_area( 'home-bottom', array(
    'before' => '<div class="home-bottom widget-area">',
    'after' => '</div>',
    ) );

    }

    and here is the modified functions.php:

    //* Register widget areas
    genesis_register_sidebar( array(
    'id' => 'home-slider',
    'name' => __( 'Home - Slider', 'executive' ),
    'description' => __( 'This is the slider section on the home page.', 'executive' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-top',
    'name' => __( 'Home - Top', 'executive' ),
    'description' => __( 'This is the top section of the home page.', 'executive' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-cta',
    'name' => __( 'Home - Call To Action', 'executive' ),
    'description' => __( 'This is the call to action section on the home page.', 'executive' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-middle',
    'name' => __( 'Home - Middle', 'executive' ),
    'description' => __( 'This is the middle section of the home page.', 'executive' ),
    ) );
    genesis_register_sidebar( array(
    'id' => 'home-bottom',
    'name' => __( 'Home - Bottom', 'executive' ),
    'description' => __( 'This is the bottom section of the home page.', 'executive' ),
    ) );

    Sorry, no link to offer. I'm developing this site offline.

    October 20, 2013 at 12:10 am #67759
    Brad Dalton
    Participant

    Not sure what CSS code you are using because i cannot access your site however you would use code like this http://wpsites.net/web-design/add-featured-widgets-inline-anywhere-in-genesis/

    You can see the width in the CSS code is 25%.


    Tutorials for StudioPress Themes & WooCommerce.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ 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