• 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

Outreach Pro: Additional Widget before Footer Widgets

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 › Outreach Pro: Additional Widget before Footer Widgets

This topic is: not resolved

Tagged: instagram, outreach, widget

  • This topic has 6 replies, 2 voices, and was last updated 5 years, 11 months ago by Bren Pace.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • February 13, 2017 at 3:05 pm #201076
    Bren Pace
    Member

    Hi.

    I'd like to add a widget to contain an instagram feed code BEFORE the 4-footer images. I thought I could do this using Genesis Simple Hooks but I'm not sure where to put the coding.

    Can anyone help?

    http://thebuckitblog.com/
    February 13, 2017 at 3:22 pm #201079
    Victor Font
    Moderator

    Genesis Simple Hooks won't get you there because of where you want the widget area to display. The process detailed here can be applied to any Studio Press theme: https://victorfont.com/add-widget-areas-to-news-pro-theme/

    The widget area itself needs to registered in functions.php. Because you want the widget to be above the footer widgets, you need to place your display code in the same hook as the footer widgets, but with a lower priority so the new area executes first:

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


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    February 13, 2017 at 3:28 pm #201082
    Bren Pace
    Member

    Hi Victor and thank you for your reply.

    So add the code:
    add_action( 'genesis_before_footer', 'my_new_widget_area', 5 );

    to the bottom of my function.php and that's it?

    February 13, 2017 at 3:37 pm #201085
    Victor Font
    Moderator

    No, that's not it. You have to add a lot of code. Read the article I pointed you to, but here's all the code you need anyway.

    genesis_register_sidebar( array(
        'id'          => 'before-footer-widgets',
        'name'        => __( 'Before Footer Widgets', 'outreach' ),
        'description' => __( 'This is the before footer widget area.', 'outreach' ),
    ) );
    
    add_action( 'genesis_before_footer', 'my_new_widget_area', 5 );
    
    function my_new_widget_area() {
        genesis_widget_area( 'before-footer-widgets', array(
            'before' => '<div class="before-footer-widgets widget-area">',
            'after'  => '</div>',
        ) );
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    February 13, 2017 at 3:40 pm #201086
    Bren Pace
    Member

    Ok, thanks so much

    February 13, 2017 at 3:43 pm #201087
    Victor Font
    Moderator

    I edited the previous reply to add the code you need.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    February 13, 2017 at 3:45 pm #201088
    Bren Pace
    Member

    Victor,

    That is so sweet of you. I know some coding but anytime I get in the editors, I get a little freaked. 🙂 I really appreciate you sharing the entire coding! You're making someone very happy! 😉

    Bren

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

© 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