WordPress.org

Ready to get started?Download WordPress

Forums

Tweet, Like, Google +1 and Share
shortcode in sidebar (4 posts)

  1. margje
    Member
    Posted 2 years ago #

    Is it possible to show the shortcode output in the sidebar? I've tried it and no buttons are shown. It works only in a post.

    Any options (widget or shortcode) to add the buttons to the sidebar ?

    http://wordpress.org/extend/plugins/only-tweet-like-share-and-google-1/

  2. margje
    Member
    Posted 2 years ago #

    anybody?

  3. polins
    Member
    Posted 2 years ago #

    Put the shortcode for the plugin (such as [social4i size="small" align="float-left"] ) in a sidebar text widget. Then execute the shortcode, (e.g. using the plugin, Shortcodes in Sidebar Widgets).
    You probably will want to turn off the default display within the contents of posts/pages to prevent duplicate loading.

    PS What a cool plugin; it gives you the basics—fast!

  4. sudipto
    Member
    Plugin Author

    Posted 2 years ago #

    @margje - By default you cannot use shortcodes in your sidebar. You can use plugins for that or simply add the below code in your themes functions.php and then you will be able to use shortcodes in your text widgets

    add_filter('widget_text', 'do_shortcode');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic