• 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

Registering New Widget Area

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 › Registering New Widget Area

This topic is: not resolved

Tagged: Add Widget, genesis_register_sidebar, studio pro

  • This topic has 3 replies, 2 voices, and was last updated 7 years ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 23, 2019 at 4:07 pm #490826
    Mohammed_Ali
    Member

    Hi there

    I'm registering a new widget area on the studio pro them but it's a bit different from the usual genesis child theme.

    For the functions.php file, I updated the following, initially it only went up to front-page-5 so I included front-page-6 and front-page-7:

    // Check if any front page widgets are active.
    if ( is_active_sidebar( 'front-page-1' ) ||
    	is_active_sidebar( 'front-page-2' ) ||
    	is_active_sidebar( 'front-page-3' ) ||
    	is_active_sidebar( 'front-page-4' ) ||
    	is_active_sidebar( 'front-page-5' ) ||
    	is_active_sidebar( 'front-page-6' ) ||
    	is_active_sidebar( 'front-page-7' ) ) {

    Then I included the following:

    		// Front page 7 widget area.
    		genesis_widget_area( 'front-page-7', array(
    		'before' => '<div class="front-page-7 widget-area"><div class="wrap">',
    		'after'  => '</div></div>',
    		) );

    But still, nothing is appearing in the backend of ?‘backend of WordPress appearance/widgets.

    How would I go about creating a new widget area on the homepage?

    https://iera.staging.wpengine.com
    April 23, 2019 at 11:40 pm #490830
    Brad Dalton
    Participant

    You also need to register new widget areas which can be done in functions.php

    genesis_register_sidebar( array(
    	'id'          => 'front-page-7',
    	'name'        => __( 'Front Page 7', 'genesis' ),
    ) );
    

    Tutorials for StudioPress Themes.

    April 28, 2019 at 6:10 am #490905
    Mohammed_Ali
    Member

    Amazing @braddalton worked like a charm.

    I just didn't notice any other genesis_register_sidebar being registered on the functions.php like that.

    How comes?

    p.s. I've included the code above - the widget area is appearing in the backend, where I'm using both the image and custom HTML widget.

    I've updated the CSS so it matches front-page-widget-4's CSS but for some reason, the style isn't copying over...

    April 28, 2019 at 11:47 pm #490909
    Brad Dalton
    Participant

    Maybe the theme includes another file to register the widget areas.

    Make sure the class in the PHP matches an existing class which includes CSS rules.


    Tutorials for StudioPress Themes.

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

© 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