• 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

Unable to get widget to register

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 › Unable to get widget to register

This topic is: not resolved

Tagged: digital pro, genesis_register_sidebar

  • This topic has 4 replies, 3 voices, and was last updated 9 years ago by samaruc.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 31, 2017 at 6:45 pm #204142
    Soloflyer
    Member

    Greetings!
    I'm using Digital Pro and trying to register a full width widget above the footer, across all pages. I'm getting an effect where the widget doesn't show up in customizer, but does show up in the regular WordPress widget area. However any widgets I add to it disappear when I leave and go back to it and nothing displays on the page. I've tried every variation on the code that I can think of but no luck. Here's the code as it stands:
    //* OC Modification. Widgetize before footer
    //* Register new sidebar
    genesis_register_sidebar( array(
    'id' => 'before-footer-contactInfo',
    'name' => __( 'Pre Footer Contact Info', 'digital-pro' ),
    'description' => __( 'Adding a contact form to the bottom of all pages.', 'digital-pro' ),
    ) );

    //* Display custom widgetized area before footer
    add_action( 'genesis_before_footer', 'oc_before_footer_widget' );
    function oc_before_footer_widget() {
    genesis_widget_area( 'before-footer-contactInfo', array(
    'before' => '<div class="contactInfo"><div class="wrap">',
    'after' => '</div></div>',
    ) );
    }
    //* End OC modification**********************

    Assistance is gratefully appreciated and let me know if you've any questions.
    Thanks!
    Archie

    http://**local**
    March 31, 2017 at 8:56 pm #204145
    Brad Dalton
    Participant
    genesis_register_sidebar( array(
    	'id'          => 'contactinfo',
    	'name'        => __( 'Before Footer' ),
    ) );
    
    
    add_action( 'genesis_before_footer', 'oc_before_footer_widget' );
    
    function oc_before_footer_widget() {
    
    genesis_widget_area( 'contactinfo', array(
        'before' => '<div class="contactInfo"><div class="wrap">',
        'after' => '</div></div>',
        ) );
    }
    

    Cannot use capitals in the i.d.


    Tutorials for StudioPress Themes.

    April 3, 2017 at 12:44 pm #204231
    Soloflyer
    Member

    Outstanding Brad!
    Spend hours looking for complex solutions...then I change "I" to "i" and suddenly my day is looking much better.
    Thanks! Hope you have a great day.

    April 3, 2017 at 4:12 pm #204239
    Brad Dalton
    Participant

    No worries.


    Tutorials for StudioPress Themes.

    May 2, 2017 at 3:49 am #205744
    samaruc
    Member
    This reply has been marked as private.
  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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