Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    You should be able to add the sharing buttons there without using my plugin. Try following the tutorial here:
    https://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.

    Thread Starter Cat

    (@catscholz74)

    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? https://victorybox.org/

    Thanks,
    -Cat

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    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!

    Thread Starter Cat

    (@catscholz74)

    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:
    https://ottopress.com/wordpress-plugins/php-code-widget/

    Thank you Jeremy!!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    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.

    https://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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not showing in Widget Content area’ is closed to new replies.