Adding a Widgeted Sidebar Under Content

Community Forums Forums Design Tips and Tricks Adding a Widgeted Sidebar Under Content

This topic is: not resolved

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

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #42520

    indiedog
    Participant
    Post count: 32

    I am trying to add an area underneath the content on my home page. I am using the Lifestyle them and looked at this tutorial. http://designsbynickthegeek.com/tutorials/add-widgeted-sidebar

    I was able to get the widget onto the home page, but am having trouble positioning it snug under the left and right content widgets. I’m not sure if I am using the wrong hooks or if its a CSS thing (I suspect its the former).

    I registered the sidebar:

    `genesis_register_sidebar( array(
    ‘id’ => ‘sliding-gallery’,
    ‘name’ => ‘Sliding Gallery’,
    ‘description’ => ‘This is a sidebar that goes after the content.’,
    ) ); `

    And then added it to the homepage:
    ` add_action( ‘genesis_after_content_sidebar_wrap’, ‘child_after_content_ad_sidebar’ );
    /** Loads a new sidebar after the content */
    function child_after_content_ad_sidebar() {

    echo ”;
    dynamic_sidebar( ‘sliding-gallery’ );
    echo ”;

    }`

    I’m not sure where I am going wrong. The site is: http://test1.moragareid.com/

    • This topic was modified 1 year, 3 months ago by  indiedog.
    • This topic was modified 1 year, 3 months ago by  indiedog.
    • This topic was modified 1 year, 3 months ago by  indiedog.
    • This topic was modified 1 year, 3 months ago by  indiedog.
    http://test1.moragareid.com/
    #42528

    braddalton
    Participant
    Post count: 9430

    Please copy this code using the view raw link and paste it at the end of your child themes functions.php using a text editor like Notepad++.

    Code not displaying? Grab it on Github.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #42705

    FutureExpat
    Participant
    Post count: 41

    Brad, you’re my hero!!! It works!!!! Thank you SOO much.

    Susanna

    #42753

    braddalton
    Participant
    Post count: 9430

    hahaha. No worries Susanna.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #42851

    indiedog
    Participant
    Post count: 32

    I’m confused. Is this the answer to my question?

    • This reply was modified 1 year, 3 months ago by  indiedog.
    • This reply was modified 1 year, 3 months ago by  indiedog.
    #42853

    braddalton
    Participant
    Post count: 9430

    Did you try the code above http://www.studiopress.com/forums/topic/adding-a-widgeted-sidebar-under-content/#post-42528


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #42933

    FutureExpat
    Participant
    Post count: 41

    Brad, I think there’s some confusion because you were replying to me in two different threads. Yes, the code above is the code I used, and it worked. Muchas gracias.

    Susanna

    #42938

    indiedog
    Participant
    Post count: 32

    You are correct Susanna. Brad, are you able to help me with my issue. I have been able to get the sidebar to the page, but need help with the position. Not sure if its a CSS issue or a the wrong hook.

    #42989

    braddalton
    Participant
    Post count: 9430

    Link to your site please.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #43415

    FutureExpat
    Participant
    Post count: 41

    Braddalton, you provided the code above and it worked perfectly. What would I change if I wanted the slider to sit on top of the content in the main column instead of across the width of the page?

    Thanks, Susanna

    #43432

    braddalton
    Participant
    Post count: 9430

    Replace ‘genesis_before_content_sidebar_wrap’ with genesis_before_loop


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

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

You must be logged in to reply to this topic.