WordPress.org

Ready to get started?Download WordPress

Forums

Sharing buttons shortcode for Jetpack
[resolved] Not showing in Widget Content area (6 posts)

  1. Catherine
    Member
    Posted 7 months ago #

    Hi there -

    Is there a way to get Jetpack sharing buttons showing in certain chosen widget content areas with your plugin? I am using iThemes Builder on this dev site: http://victorybox.org/ and I have placed the shortcode in the widget content area in the widgetized footer at the bottom of the page, but it doesn't show.

    Here is an article from iThemes codex about placing Jetpack sharing buttons in widget content areas:
    http://ithemes.com/codex/page/Builder_Plugin-related_Customizations#Sharing

    I have enabled my Theme settings as indicated in the above article to use the the_content filter to format Widget Content entries. They still do not show.

    See Screenshots:
    http://grab.by/tbbg
    http://grab.by/tbbi
    http://grab.by/tbbm

    Thanks,

    -Cat
    http://CatsWebWeave.com

    http://wordpress.org/plugins/jetpack-sharing-butttons-shortcode/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 7 months ago #

    You should be able to add the sharing buttons there without using my plugin. Try following the tutorial here:
    http://jetpack.me/2013/06/10/moving-sharing-icons/

    You'll notice that the code given there is similar, but with a tiny difference from the one given in the iThemes codex: the filters used to remove the sharing buttons should be hooked into loop_start instead of loop_end.

  3. Catherine
    Member
    Posted 6 months ago #

    Hi Jeremy - thanks for your help.

    I followed the instructions in the article from Jetpack you provided. I am using a PHP widget in the footer of the site. For some reason, the sharing buttons are not showing, just the PHP code I inserted.

    Here's what I added to functions.php in the child theme:
    /**
    Jetpack Sharing buttoons
    */
    function jptweak_remove_share() {
    remove_filter( 'the_content', 'sharing_display',19 );
    remove_filter( 'the_excerpt', 'sharing_display',19 );
    if ( class_exists( 'Jetpack_Likes' ) ) {
    remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
    }
    }

    add_action( 'loop_start', 'jptweak_remove_share' );

    Any clues? http://victorybox.org/

    Thanks,
    -Cat

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 6 months ago #

    I am using a PHP widget in the footer of the site.

    Could you point me to the plugin in the repository, or a site where I can download the plugin use to create the Widget Content Post Type and the PHP widgets? I'd like to run some tests, so I can give you the exact code to use to display the sharing buttons there.

    Thanks!

  5. Catherine
    Member
    Posted 6 months ago #

    Widget Content post type comes with iThemes Builder theme.

    Here is the one I am using on this site: https://dl.dropboxusercontent.com/u/80424310/Builder-Depot-5.0.14%20copy.zip

    And here is the PHP widget:
    http://ottopress.com/wordpress-plugins/php-code-widget/

    Thank you Jeremy!!

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 6 months ago #

    I had a look at the theme, and it seems to include an option that will solve all your issues.

    In your dashboard, go to My Theme > Settings > Widget Content, and check the following option:

    Use the the_content filter to format Widget Content entries.

    http://i.wpne.ws/TqKD

    Once you save your changes, the sharing buttons will appear below each widget content entry.

    You can now deactivate the Sharing buttons shortcode for Jetpack plugin.

Reply

You must log in to post.

About this Plugin

About this Topic