• 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

Add widget area above Primary and alt sidebars

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 › Add widget area above Primary and alt sidebars

This topic is: not resolved

Tagged: 3 columns, hook, sidebars, widget

  • This topic has 14 replies, 3 voices, and was last updated 10 years, 2 months ago by soaringpine.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • March 26, 2013 at 12:20 pm #31369
    soaringpine
    Member

    I am using the Focus theme for my blog site, with the home page utilizing a 3 column layout (content, primary sidebar, alt sidebar).  My inner pages are utilizing a content, primary sidebar layout.

    What I would like to do is add a widget area above BOTH sidebars on the home page.  I can add a widget using a hook but I cannot add it above BOTH sidebars.  There is no hook that places it above both sidebars.

    Can someone guide me in the right direction with this?  I would greatly appreciate it.

    March 26, 2013 at 12:48 pm #31376
    Brad Dalton
    Participant

    Link to your homepage please.


    Tutorials for StudioPress Themes & WooCommerce.

    March 26, 2013 at 1:37 pm #31389
    Susan
    Moderator

    Try these threads:

    need double width text widget

    Adding widget area above both sidebars

    March 26, 2013 at 8:51 pm #31446
    soaringpine
    Member

    My site is http://www.hornsports.com.  None of these solutions are working for me.  No hook that will put a widget above both sidebars without covering both the content area and the sidebars.

    Any ideas are appreciated.

    March 27, 2013 at 1:37 am #31462
    Brad Dalton
    Participant

    How about this hook: genesis_before_content_sidebar_wrap


    Tutorials for StudioPress Themes & WooCommerce.

    March 27, 2013 at 8:10 am #31508
    soaringpine
    Member

    That hook places the widget above both the content column and both sidebars.  Just need something to place above the sidebars.

    Any other ideas?

     

    March 27, 2013 at 8:18 am #31512
    Brad Dalton
    Participant

    This one but only for content sidebar layouts. genesis_before_sidebar_widget_area

    I guess you already know that?

    I'm sure there's a way to add custom hooks in Genesis.


    Tutorials for StudioPress Themes & WooCommerce.

    March 27, 2013 at 8:32 am #31515
    Brad Dalton
    Participant

    I think i found a hook already in the Genesis core sidebar-alt.php file.

    Try these 2:

    genesis_before_sidebar_alt_widget_area

    genesis_before_sidebar_widget_area

    Works?


    Tutorials for StudioPress Themes & WooCommerce.

    March 27, 2013 at 8:36 am #31516
    soaringpine
    Member

    This is what I currently use:

     

    add_action( 'genesis_before_content_sidebar_wrap', 'child_before_sidebar_widget_area_ad_sidebar' );

    /** Loads a new sidebar after the content */ function child_before_sidebar_widget_area_ad_sidebar () {    echo '<div class="before-sidebars-area">';

    dynamic_sidebar( 'before-sidebars-area' );

    echo '</div>';

    }

     

     

    How would I utilize two hooks?

    March 27, 2013 at 9:10 am #31526
    Brad Dalton
    Participant

    I've written the code containing the new hook and will test it using the sidebar - content - sidebar layout.


    Tutorials for StudioPress Themes & WooCommerce.

    March 27, 2013 at 9:21 am #31529
    soaringpine
    Member

    Thanks Brad.  Focus does offer the 3 column layout as an option (http://demo.studiopress.com/focus/layouts/css/).  I am using content-sidebar-sidebar on my home page.

    I appreciate your help with this.

    Also checked out your site - nice work.

    March 27, 2013 at 9:35 am #31534
    Brad Dalton
    Participant

    Try this https://gist.github.com/braddalton/5254942


    Tutorials for StudioPress Themes & WooCommerce.

    March 27, 2013 at 9:58 am #31536
    soaringpine
    Member

    Brad, this adds two widget areas it looks like - one above each sidebar.

    March 27, 2013 at 10:35 am #31544
    Brad Dalton
    Participant

    Just use one and make the width extend across both using CSS code.

    There is no hook that places it above both sidebars.


    Tutorials for StudioPress Themes & WooCommerce.

    March 27, 2013 at 8:01 pm #31645
    soaringpine
    Member

    Still getting hidden behind one sidebar.  Any other ideas?

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