Community Forums › Forums › Design Tips and Tricks › Add Slider to Page Agency Theme
This topic contains 26 replies, has 4 voices, and was last updated by moxi 3 months ago.
-
AuthorPosts
-
February 14, 2013 at 1:03 am #20245
Link to your site please
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.February 14, 2013 at 1:40 am #20255http://codex.wordpress.org/Conditional_Tags
http://my.studiopress.com/docs/hook-reference/
http://genesistutorials.com/visual-hook-guide/
http://www.bobwp.com/genesis-simple-hooks-plugin/
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.February 14, 2013 at 10:40 am #20326February 14, 2013 at 10:41 am #20327February 14, 2013 at 11:25 am #20338Where exactly according to the Genesis Visual Hook Reference? Before content full width?
Also, You need to change your permalink structure.
// Register before-content widget genesis_register_sidebar( array( 'id' => 'before-content', 'name' => __( 'WP Sites Custom Widget', 'agentpress' ), 'description' => __( 'This is the before-content section.', 'child' ), ) ); // Hook before-post widget to single page add_action( 'genesis_before_content_sidebar_wrap', 'custom_before_content', 9 ); function custom_before_content() { if ( is_page(1872) && is_active_sidebar( 'before-content' ) ) { echo '<div class="before-content"><div class="wrap">'; dynamic_sidebar( 'before-content' ); echo '</div></div>'; } } //Add widget area, full width, specific page only, before content, genesis, child themes.This code may not work because it includes HTML within the php which can cause problems.
Go to pastebin to get the code and paste it into the end of your child themes functions.php file.
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.February 15, 2013 at 10:41 am #20524I would like it before this: genesis_before_post
February 15, 2013 at 10:44 am #20525Simply change the hook from genesis_before_content_sidebar_wrap to genesis_before_post.
Use the code from Pastebin not the code above.
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.February 15, 2013 at 10:49 am #20528Still not working. I did get the code from Pastebin here http://pastebin.com/jnGzyxJLand changed the hook as instructed.
Do I need to do anything in the simple hooks plugin?
February 15, 2013 at 10:51 am #20529ok, I did as instructed and copied code from here: http://pastebin.com/jnGzyxJL then changed the hook, inserted into the functions.php, however it is not working.
Do I need to do anything in the simple hooks plugin?
February 16, 2013 at 12:02 am #20644Should work.
Read this tutorial which offers 2 ways to do this.
Using a custom function and simple hooks
http://designsbynickthegeek.com/tutorials/add-widgeted-sidebar
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.February 16, 2013 at 12:03 am #20645Did you check in your Widgets area for the new widget?
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.February 18, 2013 at 4:59 pm #21120Ok, I did know know you had to go into the widgets and put the Gen Slider into the new widget area. Makes sense now.
Thank you very, very much for all your help!
-
AuthorPosts
You must be logged in to reply to this topic.