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 8, 2013 at 11:21 am #18958
How can I add a slider to a page within the Agency Theme (not front page)?
February 8, 2013 at 12:47 pm #18979You can create a widget area using a conditional tag and use the Genesis slider or you can use a slider like the easing slider which offers a shortcode.
Where exactly do you want it and on what page? Can you paste a link to the exact location please.
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.February 8, 2013 at 1:01 pm #18992I would like the slider on an interior page: http://frontrowcom.com/experience Which is not an option with the Agency Theme
I am not confident in complicated coding. I am still at the copy and paste stage.
If it is too complicated, I will need to look for help.
Thanks for your reply.
February 8, 2013 at 1:13 pm #19002Its possible because you can create a widget anywhere there’s a hook.
Or you can use the Simple Hooks plugin and add code in there with a conditional tag.
I will supply the code but where do you want it to display on the page?
Within the content area? Before the content area? In the header on that page only? After the header?
Check out this visual hook reference. http://genesistutorials.com/visual-hook-guide/
Why don’t you install the Genesis Simple Hooks plugin and place some text in the exact location you want the slider to output.
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.February 8, 2013 at 1:21 pm #19007Thank you!!
I want it to display before the content area. I will add the plugin.
I really appreciate your help.
February 8, 2013 at 1:47 pm #19022This reply has been marked as private.
February 8, 2013 at 2:12 pm #19039Backup your functions.php file first and add this code:
Paste it into your child themes functions.php file http://pastebin.com/RZZAsxdQ
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.February 8, 2013 at 2:21 pm #19042Resources:
http://www.briangardner.com/code/add-after-post-widget/
http://codex.wordpress.org/Conditional_Tags
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.February 8, 2013 at 3:53 pm #19086Thank you for the code!! Does it need to go in any particular place in the functions,php file?
How will I be able to assign the featured images/pages of the slider?
February 8, 2013 at 4:13 pm #19094This reply has been marked as private.
February 8, 2013 at 9:37 pm #19157Hi braddalton,
Would you be willing to share this code with me as well? This is the information I asked over a week ago but was never resolved. I wanted to place the slider before the content. You had asked if I wanted to place it before the content and I said yes at the time. Here is the link to the post: http://www.studiopress.com/forums/topic/home-page-sidebar-for-slider-plugin/
I will appreciate your help also.
February 8, 2013 at 10:06 pm #19161Paste the code at the end of your child themes functions.php file
How will I be able to assign the featured images/pages of the slider? Yes you can add the i.d’s of the posts and pages to the slider settings.
Here’s the code:
http://pastebin.com/u/braddalton
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.February 8, 2013 at 10:19 pm #19164Thank you very much for your help. The site is full of other useful information and I have bookmarked it.
February 9, 2013 at 4:48 pm #19297Brad,
It worked! Very nice.
http://frontrowcom.com/our-work
The code resulted in a “BEFORE CONTENT” available widget. I added the Genesis slider widget and it duplicated the slider I have on the front page. I’ll read on to see if and/or how I can add different content to the slider.
I have bookmarked your pages, very helpful information here.
Thanks again!
February 13, 2013 at 10:24 am #20081I am looking for more detailed info on these instructions. I want to know what the conditional tag is and where do you put it in the simple hooks.
I am wanting to put the gen slider on a page before content.
Thanks.
-
AuthorPosts
You must be logged in to reply to this topic.