• 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

Adding widget area above both 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 › Adding widget area above both sidebars

This topic is: not resolved

Tagged: Sidebar

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 9 months ago by Au Coeur.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 17, 2012 at 10:18 am #5752
    Au Coeur
    Member

    RE: http://66.147.244.203/~nalunant/

    I am trying to accomplish a three column layout option with an additional widget area spanning the top of the two sidebars (similar to this).  Does anyone have any suggestions?

    Here is what I have tried:

    Added my additional widget area at the top of the sidebar div and called the secondary sidebar with " add_action('genesis_after_sidebar_widget_area', 'genesis_sidebar_alt');"  However, I have discovered that calling the sidebar-alt output this way removes the layout functionality -- genesis no longer recognizes if it should show one or both columns based upon the layout settings selected on the page.

    And, on top of that, I have not been able to figure out how to remove the original sidebar-alt as

    remove_action( 'genesis_before_sidebar_alt_widget_area' );
    remove_action( 'genesis_sidebar_alt' );
    remove_action( 'genesis_after_sidebar_alt_widget_area');

    did not work.

    I would greatly appreciate any help accomplishing this.  Thanks.

     


    Mother. Web & Graphic Designer. Lactation Consultant. Blogging about how it all fits together, most recently from northern Colorado. Visit my blog or my design site.

    December 17, 2012 at 1:58 pm #5799
    Dorian Speed
    Member

    I think what I would do is choose a content-sidebar layout, then register additional sidebar areas UNDER the sidebar.

    When I did this before, I added the following to functions.php:


    // Add two sidebars underneath the primary sidebar
    add_action('genesis_after_sidebar_widget_area', 'lifestyle_include_bottom_sidebars');
    function lifestyle_include_bottom_sidebars() {
    require(CHILD_DIR.'/sidebar-bottom.php');
    }

    Then I added a file titled sidebar-bottom.php to the theme files, with this as its content:

    <div id="sidebar-bottom">

    <div id="sidebar-bottom-left">


    </div><!-- end #sidebar-bottom-left -->

    <div id="sidebar-bottom-right">


    </div><!-- end #sidebar-bottom-right -->

    </div><!-- end #sidebar-bottom -->

    I also registered the sidebar areas in functions.php but I think that duplicated the addition of the sidebar-bottom.php file.

    genesis_register_sidebar(array(

    'name'=>'Sidebar Bottom Left',

    'id' => 'sidebar-bottom-left',

    'description' => 'This is the bottom left column in the sidebar.',

    'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'

    ));

    genesis_register_sidebar(array(

    'name'=>'Sidebar Bottom Right',

    'id' => 'sidebar-bottom-right',

    'description' => 'This is the bottom right column in the sidebar.',

    'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'

    ));

    So - I think there's a simpler way to do it, but that worked for me on another site.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    December 19, 2012 at 2:33 am #6118
    Au Coeur
    Member

    There is a simpler way to do it.  I know how to add additional sidebars, but that's not what I want to do because I want the client to have the ability to easily choose on a page by page or post by post basis whether or not to have the secondary sidebar to show up and which sidebar to display (using Genesis layout and sidebar selection in post/page).  Hence, the second sidebar in this area needs to maintain all of the functionality of the sidebar-alt.  I am hoping that there is a way to relocate the secondary sidebar rather than create a new one.


    Mother. Web & Graphic Designer. Lactation Consultant. Blogging about how it all fits together, most recently from northern Colorado. Visit my blog or my design site.

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