Community Forums › Forums › Design Tips and Tricks › Using WP-Cycle as a widget vs short code
This topic contains 9 replies, has 2 voices, and was last updated by SoZo 6 months, 3 weeks ago.
-
AuthorPosts
-
November 27, 2012 at 1:11 pm #1909
Can someone tell me how to use WP-Cycle in the widget position for the slider in the AgentPress theme? Currently the only way to use this is with a short code in a post and some of the themes have code written in them so that the WP cycle appears in the widget on the home page. I am starting to use Agentpress and not too crazy about the Genesis slider and would prefer to use WP-Cycle.
Here is an Agentpress site with WP-Cycle http://homesaleaz.com and here is the one I have designed with Genesis Slider http://chandler-homesfor-sale.com
Thanks
PS I really miss the old format for the forums
-
This topic was modified 6 months, 3 weeks ago by
SoZo.
-
This topic was modified 6 months, 3 weeks ago by
SoZo.
November 27, 2012 at 1:30 pm #1912You need to replace the sidebar with wp_cycle’s template tag or enable shortcode in text widgets and use a text widget.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
November 27, 2012 at 1:37 pm #1916Thanks Sozo so if I want the WP-Cycle in the slider widget I would use a text widget; how would I insert the [wp-cycle] into the text widget?
November 27, 2012 at 2:20 pm #1922You’d add the shortcode to the text widget the same way you’d add it to a post or page.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
November 27, 2012 at 6:44 pm #1953I tried that Sozo and it didn’t work; I read somewhere that you have to add some CSS code to the functions file
add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode');
but I am not sure where to place that in the functions.php?
November 27, 2012 at 6:47 pm #1955Yes, that’s what I linked to in my original post
You can place it anywhere in functions.php as long as it’s not within another function. To be safe most people tack stuff onto the end.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
November 27, 2012 at 6:55 pm #1957Great so I don’t have to worry about putting it between a */ and /**? I simply scoll to the very bottom and at the end of ) ); I would add
add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode');
or do I have to close it with a /**
Thanks,
John
November 27, 2012 at 7:49 pm #1967Got it to work!!!
Thanks LOTS
November 27, 2012 at 7:52 pm #1968PS: I have been flying by the seat of my pants for two years with WordPress and tweaked some good sites and got them ranked very well in the SERP’s…just a testament to the simply-complex design of the wordpress platform:)
November 27, 2012 at 8:34 pm #1974 -
This topic was modified 6 months, 3 weeks ago by
-
AuthorPosts
The topic ‘Using WP-Cycle as a widget vs short code’ is closed to new replies.