• 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

Widget Area Above Home-Top Backcountry

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 › General Discussion › Widget Area Above Home-Top Backcountry

This topic is: resolved
  • This topic has 12 replies, 3 voices, and was last updated 12 years, 9 months ago by wtechrbr.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • October 8, 2013 at 3:11 pm #65883
    wtechrbr
    Member

    I'd like to add 2 widgets above the home-top area of the backcountry theme. Similar to the existing home-left and home-right, but I'd like them to execute them before the home-top section such that they take up the full width before the primary sidebar comes into play.

    I know how to register the new widgets, but I'm not sure how to add them correctly in the home.php file as I don't see a reference to the home-top section to execute them before.

    Thanks for any help you might be able to give.

    October 8, 2013 at 8:16 pm #65908
    Brad Dalton
    Participant

    Link to your site please.


    Tutorials for StudioPress Themes.

    October 8, 2013 at 8:52 pm #65911
    wtechrbr
    Member

    Sure - here you go - just getting started on it.

    http://dev.girlsontherunrockies.org/

    October 9, 2013 at 12:30 am #65922
    Brad Dalton
    Participant

    Try this http://wpsites.net/web-design/add-2-responsive-widgets-side-by-side-in-genesis-2/


    Tutorials for StudioPress Themes.

    October 9, 2013 at 10:06 am #65977
    wtechrbr
    Member

    Super helpful - thanks. Was hoping to still use the home-top widget area and was hoping the 2 new widgets would present above home-top, such that I'd have a pair of widgets (left and right), the full-width home-top, then content-sidebar.

    October 9, 2013 at 10:11 am #65978
    wtechrbr
    Member

    Sent too fast....

    I tried swapping in a variety of hook placements like genesis_after_header and genesis_before_content_sidebar_wrap but none yielded the desired result. I also tried defining a new widget area similar to home-top to be executed right after my new pair of widgets, but for some reason I had an error in my logic and couldn't get it to work. Thought maybe you would have a suggestion for the appropriate hook reference to use such that the new pair would show up prior to the already defined home-top widget area.

    Much thanks for the help you've already extended to me. I very much appreciate it.

    October 9, 2013 at 5:30 pm #66032
    Brad Dalton
    Participant

    Try this:


    Tutorials for StudioPress Themes.

    October 10, 2013 at 10:39 am #66155
    wtechrbr
    Member

    Hey - just got a chance to try, and it behaved the same.

    home-top executed before newly defined widget areas.

    It looks like it needs to be executed just after the subnav. I didn't see a specific hook for that, but maybe its possible.

    Thanks again for helping so much.

    October 10, 2013 at 7:25 pm #66203
    Brad Dalton
    Participant

    When i tested it it worked perfectly. Here's the screenshot.

    index <


    Tutorials for StudioPress Themes.

    October 15, 2013 at 12:49 pm #66856
    wtechrbr
    Member

    Hey - sorry for the lag in response.....

    I'm able to get what you have in the screenshot above too. What I am trying to do is get the pre-defined "home-top" to render below my new "above-home-top-left" and "above-home-top-right" widget areas. Such that

    Above-Home-Top-Left Above-Home-Top-Right
    Home-Top
    Home-Left Home-Right

    Currently, I can only get it too render as this:

    Home-Top
    Above-Home-Top-Left Above-Home-Top-Right
    Home-Left Home-Right

    Thanks again for your help!

    October 15, 2013 at 1:43 pm #66866
    Summer
    Member

    Can you try taking the if statement for the home-top out of the function Brad gave you, and put it inside the existing home_loop_helper function, so that the new areas are called in that order in the home.php? Basically remove the add_action, and the function, but put the meat of that function in the other function, as the first if.

    That way, home-top, home, and home-bottom are called in the order you need them.


    WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
    Slice of SciFi | Writers, After Dark

    October 15, 2013 at 2:25 pm #66871
    wtechrbr
    Member

    I will try that - thanks for the suggestion.

    I've noticed the home-top is invoked from the functions.php file rather than the home.php file. I think that might be the root of my problem. The functions.php has the following:

    /** Add home top section to homepage */
    add_action( 'genesis_before_content_sidebar_wrap', 'backcountry_home_top' );
    function backcountry_home_top() {

    if ( is_front_page() && is_active_sidebar( 'home-top' ) ) {
    echo '<div id="home-top">';
    dynamic_sidebar( 'home-top' );
    echo '</div><!-- end #home-top -->';
    }

    }

    I've been invoking my new widget areas from home.php, but maybe I should be putting them in functions.php to correctly invoke them in the order I want and in relation to home-top. Just not sure...

    October 24, 2013 at 4:24 pm #68722
    wtechrbr
    Member

    Moved the invocation of the home-top widget from the functions.php file to the home.php file right after the 2 newly defined widget areas.

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Widget Area Above Home-Top Backcountry’ 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

© 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