• 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

Cannot add extra widget area on home page

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 › Cannot add extra widget area on home page

This topic is: resolved

Tagged: widget areas

  • This topic has 1 reply, 1 voice, and was last updated 5 years, 11 months ago by rogerp.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 1, 2020 at 8:40 am #498351
    rogerp
    Participant

    I am trying to add an extra widget on the home page, which I managed to do one but cannot get a second one to work. the one I can't get to work is front-page-4-a

    functions.php

    //* Add Front Page Template widget areas
    genesis_register_sidebar( array(
    'id' => 'front-page-1',
    'name' => __( 'Front Page 1', 'smart-passive-income-pro' ),
    'description' => __( 'The first section on the front page.', 'smart-passive-income-pro' ),
    ));
    genesis_register_sidebar( array(
    'id' => 'front-page-2',
    'name' => __( 'Front Page 2', 'smart-passive-income-pro' ),
    'description' => __( 'The second section on the front page.', 'smart-passive-income-pro' ),
    ));
    genesis_register_sidebar( array(
    'id' => 'front-page-3-a',
    'name' => __( 'Front Page 3 - Top', 'smart-passive-income-pro' ),
    'description' => __( 'The top half of the third section on the front page.', 'smart-passive-income-pro' ),
    ));
    genesis_register_sidebar( array(
    'id' => 'front-page-3-aa',
    'name' => __( 'Front Page 3 - Top2', 'smart-passive-income-pro' ),
    'description' => __( 'The first section on the front page.', 'smart-passive-income-pro' ),
    ));
    genesis_register_sidebar( array(
    'id' => 'front-page-4-a',
    'name' => __( 'Front Page 4 Top', 'smart-passive-income-pro' ),
    'description' => __( 'The fourth section on the front page.', 'smart-passive-income-pro' ),

    front-page.php

    //* Function to initiate widgetized page render
    add_action( 'genesis_meta', 'spi_front_page_init' );
    function spi_front_page_init() {

    if ( is_active_sidebar( 'front-page-1' ) || is_active_sidebar( 'front-page-2' ) || is_active_sidebar( 'front-page-3-a' ) || is_active_sidebar( 'front-page-3-aa' ) || is_active_sidebar( 'front-page-4-a' ) || is_active_sidebar( 'front-page-3-b' ) || is_active_sidebar( 'front-page-4' ) ) {

    I just want to duplicate a widget area on the home page -

    It shows in the widget area and I can drag widgets into it but they do not render on the home page?

    Thanks


    Roger
    https://www.rogerperkin.co.uk/
    Check out my Network Automation Training – Training the Network Engineers of the Future

    https://www.rogerperkin.co.uk/
    May 1, 2020 at 8:47 am #498352
    rogerp
    Participant

    I have found the problem, I had not added the extra code to

    front-page.php

    //* Function to output active widget areas
    function spi_home_widget_loop() {

    Extra widget is working now


    Roger
    https://www.rogerperkin.co.uk/
    Check out my Network Automation Training – Training the Network Engineers of the Future

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Cannot add extra widget area on home page’ is closed to new 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