Add widget area above Primary and alt sidebars

Community Forums Forums Design Tips and Tricks Add widget area above Primary and alt sidebars

This topic is: not resolved

This topic contains 14 replies, has 3 voices, and was last updated by  soaringpine 1 year, 10 months ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #31369

    soaringpine
    Participant

    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.

    #31376

    braddalton
    Participant

    Link to your homepage please.


    #31389

    Susan
    Moderator
    #31446

    soaringpine
    Participant

    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.

    #31462

    braddalton
    Participant

    How about this hook: genesis_before_content_sidebar_wrap


    #31508

    soaringpine
    Participant

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

    Any other ideas?

     

    #31512

    braddalton
    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.


    #31515

    braddalton
    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?


    #31516

    soaringpine
    Participant

    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?

    #31526

    braddalton
    Participant

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


    #31529

    soaringpine
    Participant

    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.

    #31534

    braddalton
    Participant
    #31536

    soaringpine
    Participant

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

    #31544

    braddalton
    Participant

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

    There is no hook that places it above both sidebars.


    #31645

    soaringpine
    Participant

    Still getting hidden behind one sidebar.  Any other ideas?

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.