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, 3 months ago.

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

    soaringpine
    Participant
    Post count: 6

    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
    Post count: 8843

    Link to your homepage please.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #31389

    Susan
    Moderator
    Post count: 7982
    #31446

    soaringpine
    Participant
    Post count: 6

    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
    Post count: 8843

    How about this hook: genesis_before_content_sidebar_wrap


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #31508

    soaringpine
    Participant
    Post count: 6

    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
    Post count: 8843

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #31515

    braddalton
    Participant
    Post count: 8843

    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?


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #31516

    soaringpine
    Participant
    Post count: 6

    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
    Post count: 8843

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


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #31529

    soaringpine
    Participant
    Post count: 6

    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
    Post count: 8843

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


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #31536

    soaringpine
    Participant
    Post count: 6

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

    #31544

    braddalton
    Participant
    Post count: 8843

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

    There is no hook that places it above both sidebars.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #31645

    soaringpine
    Participant
    Post count: 6

    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.