Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adding widgeted area next to Serenity slider
- This topic has 5 replies, 3 voices, and was last updated 9 years, 7 months ago by
daretobe.
-
AuthorPosts
-
August 11, 2013 at 3:43 pm #55689
daretobe
MemberHello,
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.comAugust 11, 2013 at 4:28 pm #55696Anita
KeymasterYou 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.
Love coffee, chocolate and my Bella!
August 11, 2013 at 11:35 pm #55722daretobe
MemberHi 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!
August 12, 2013 at 2:03 am #55738Brad Dalton
ParticipantThe 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.
August 12, 2013 at 2:46 am #55742Brad Dalton
ParticipantHere's another code snippet which displays the widget content in another position on the home page http://www.studiopress.community/topic/add-new-widgetized-area-in-prose/#post-55409
August 13, 2013 at 11:38 pm #56237daretobe
MemberOk. 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.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.