• 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

New widget area above footer

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 › New widget area above footer

This topic is: not resolved

Tagged: footer widgets, register widget area

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 3 months ago by Tim Squires.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 31, 2015 at 4:34 am #139129
    Tim Squires
    Member

    Hi,
    I have been trying to help someone else on the forum, but in doing so I struck my own problem.

    I'm trying to help a member to create a new widget area (full page width) to appear above the 3 existing footer widget areas on the Genesis sample theme.

    I have successfully created the new widget area, but it appears below the existing widgets, not above them where we need it to be.

    This is confusing to me because I used the 'genesis-before-footer' hook, so I thought it would appear before the footer. Somehow I need to swap the order around so that the new widget area is on top.

    This is the code that I put into functions.php:

    //* Register before footer widget area
    genesis_register_sidebar( array(
    'id' => 'before-footer',
    'name' => __( 'Before Footer', 'sample' ),
    'description' => __( 'This is the before footer widget area.', 'sample' ),
    ) );
    
    //* Hook before footer widget area before site footer
    add_action( 'genesis_before_footer', 'bg_before_footer_widget_area' );
    function bg_before_footer_widget_area() {
    genesis_widget_area( 'before-footer', array(
    'before' => '<div class="before-footer widget-area"><div class="wrap">',
    'after' => '</div></div>',
    ) );
    } 

    I have placed calendars into the widget areas just to show where they are with some content.

    My sandbox site is here:

    Thanks on behalf of both of us 🙂
    Cheers,
    Tim


    timsquires.com.au

    http://www.timsquires.com.au/sandbox
    January 31, 2015 at 6:22 am #139140
    Carlo
    Member

    Hi Tim. Replace this line:

    add_action( 'genesis_before_footer', 'bg_before_footer_widget_area' );

    with this:

    add_action( 'genesis_before_footer', 'bg_before_footer_widget_area', 5 );

    Let me know if that works.


    Comprehensive, easy to follow Genesis documentation

    January 31, 2015 at 3:15 pm #139203
    Tim Squires
    Member

    Hi Carlo, that works! Brilliant, thank you very much.
    Cheers,
    Tim


    timsquires.com.au

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