• 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

How to Make Widget Area Last Widget Area Before the 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 › How to Make Widget Area Last Widget Area Before the Footer

This topic is: resolved

Tagged: Essence Pro

  • This topic has 6 replies, 3 voices, and was last updated 4 years, 2 months ago by Christie Hoy.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • June 18, 2018 at 4:32 pm #220955
    reachself
    Member

    I recently switched themes from Infinity Pro to Essence Pro. I used the coding from the following link in Infinity Pro and it worked just fine - the instagram widget showed at the bottom.

    How to Add an Instagram Feed to Your Site Footer

    When I put it in the Essence Pro theme, it shows up before other widget areas that are before the footer. It shows up before 'Front Page Featured', 'After Content Featured', and 'Footer CTA'.

    How can I fix it so that the instagram widget area is the last before the footer?

    https://reachingself.com/
    June 18, 2018 at 6:55 pm #220956
    Anita
    Keymaster

    In the code from the StudioPress blog, try changing genesis_before_footer to genesis_after_footer

    // Add Instagram widget before footer.
    add_action( 'genesis_before_footer', 'sp_instagram_feed_widget' );
    function sp_instagram_feed_widget() {
    
    	genesis_widget_area( 'instagram', array(
    		'before' => '<div class="instagram"><div class="wrap">',
    		'after'  => '</div></div>',
    	) );
    
    }

    Love coffee, chocolate and my Bella!

    June 18, 2018 at 9:00 pm #220968
    reachself
    Member

    Thank you for your response. I did try that but I want the widget area to show right before the footer. I just need it after the other widget areas.

    June 18, 2018 at 9:03 pm #220969
    Anita
    Keymaster

    You need to add a priority to it then.

    add_action( 'genesis_before_footer', 'sp_instagram_feed_widget', 10 );

    On that line add the comma (,) and 10. If it doesn't move, then try 15.


    Love coffee, chocolate and my Bella!

    June 18, 2018 at 9:11 pm #220971
    reachself
    Member

    Thank you! 19 ended up working!

    June 18, 2018 at 9:14 pm #220972
    Anita
    Keymaster

    Good job! It looks great.


    Love coffee, chocolate and my Bella!

    November 22, 2018 at 11:27 am #224523
    Christie Hoy
    Member
    This reply has been marked as private.
  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to Make Widget Area Last Widget Area Before the Footer’ 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

© 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