Using WP-Cycle as a widget vs short code

Community Forums Forums Design Tips and Tricks Using WP-Cycle as a widget vs short code

This topic is: not resolved

This topic contains 9 replies, has 2 voices, and was last updated by  SoZo 1 year, 9 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1909

    john gronley
    Participant
    Post count: 124

    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 1 year, 10 months ago by  SoZo.
    • This topic was modified 1 year, 10 months ago by  SoZo.
    #1912

    SoZo
    Moderator
    Post count: 1573

    You 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

    #1916

    john gronley
    Participant
    Post count: 124

    Thanks 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?

    #1922

    SoZo
    Moderator
    Post count: 1573

    You’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

    #1953

    john gronley
    Participant
    Post count: 124

    I 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?

    #1955

    SoZo
    Moderator
    Post count: 1573

    Yes, 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

    #1957

    john gronley
    Participant
    Post count: 124

    Great 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
    
    
    		
    	
    #1967

    john gronley
    Participant
    Post count: 124

    Got it to work!!!

    Thanks LOTS

    #1968

    john gronley
    Participant
    Post count: 124

    PS: 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:)

    #1974

    SoZo
    Moderator
    Post count: 1573

    You’re welcome :)


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

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

The topic ‘Using WP-Cycle as a widget vs short code’ is closed to new replies.