Adding widgeted area next to Serenity slider

Community Forums Forums Design Tips and Tricks Adding widgeted area next to Serenity slider

This topic is: not resolved

This topic contains 5 replies, has 3 voices, and was last updated by  daretobe 11 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #55689

    daretobe
    Participant
    Post count: 2

    Hello,

    I followed the tutorial at http://designsbynickthegeek.com/tutorials/add-widgeted-sidebar for adding a widgeted area next to the slider in the Serenity theme. However, I’m still unable to get it to work.

    I’d like to reduce the slider width and place an autoresponder plugin to the right of it.

    I reduced slider width to 600 and added the following to the functions.php:

    genesis_register_sidebar( array(
    ‘id’ => ‘before-content-ad’,
    ‘name’ => ‘Before Content ad’,
    ‘description’ => ‘This is a sidebar that goes before the content.’,
    ) );
    add_action( ‘genesis_before_content_sidebar_wrap’, ‘child_before_content_slider’ );
    /** Loads a new sidebar before the content */
    function child_before_content_slider() {

    echo ”;
    if ( is_home() )
    dynamic_sidebar( ‘before-content-slider’ );
    echo ”;
    }

    To style the sidebar I used:
    /* Before Content
    ———————————————————— */

    .before-content-slider {
    background: #dddddd;
    padding: 10px;
    }

    The new sidebar now shows up in the dashboard. However, it does not appear on the home page. I tested the sidebar by adding a text box and simply typing in sample text. The result I got was a smaller slider that was centered on the home page and has a big white space underneath.

    I am a novice at php. I’m guessing I set up something incorrectly. Here is my url: http://www.christinenferguson.com

    Thanks in advance for your help.

    http://www.ChristineNFerguson.com
    #55696

    anitac
    Participant
    Post count: 6992

    You need to probably add your code to the Home.php file instead of the functions and then float the widgets – one on the left and one on the right.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #55722

    daretobe
    Participant
    Post count: 2

    Hi and thanks for your fast response.

    I added the code to the Home.php; however, the new sidebar did not show up in the dashboard. I’m sure it’s something I’m not doing correctly.

    I found a plugin called WOW slider, so I’m going to play around with that and see if it works the way I want it to.

    Thanks again!

    #55738

    braddalton
    Participant
    Post count: 8857

    The code for the home.php widget is wrong however there is an easier solution which is to install the Pro Version of Soliloquy which enables you to add a sign up form to the slider.

    Another option is to hook in a new full width widget and use content columns for the slider and sign up form which i have answered in a previous post.

    Another option is to hook the slider into the content area and use the sidebar for the sign up form.

    Or you could fix the code above.

    Simply change the hook position to output the widget content full width or content width.

    You can add the content columns to a text widget with your form code in one column and the slider shortcode in another.

    Really depends on the positioning.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #55742

    braddalton
    Participant
    Post count: 8857

    Here’s another code snippet which displays the widget content in another position on the home page http://www.studiopress.com/forums/topic/add-new-widgetized-area-in-prose/#post-55409


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #56237

    daretobe
    Participant
    Post count: 2

    Ok. Thank you. I will work on fixing the code and take it from there.

    Thanks so much. I will let you know how it goes.

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

You must be logged in to reply to this topic.