• Resolved mollymcclelland

    (@mollymcclelland)


    I am using this widget to add small ads to my right sidebar – Theme 2012. However if I enable the Jetpack Sharing utility, the sharing buttons show up under each ad as if it were a post. I have tried all 4 available sharing setting options (Posts, page, front page, image) but cannot find a way to use sharing buttons on actual posts but NOT on my sidebar images. Can you please help?

    Thank you
    Molly McClelland
    SeniorSpokane.com

    https://www.ads-software.com/plugins/simple-image-widget/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Brady Vercher

    (@bradyvercher)

    Hi Molly,

    I hadn’t run into this issue before, but I can see how that’d be frustrating. Your best bet is to disable the sharing buttons everywhere except in the main content section. You can do that by creating a new plugin file with the following code:

    <?php
    /**
     * Plugin Name: Tame Jetpack Sharing
     */
    
    function mm_tame_jetpack_sharing( $show, $post ) {
    	if ( ! in_the_loop() ){
    		$show = false;
    	}
    	return $show;
    }
    add_filter( 'sharing_show', 'mm_tame_jetpack_sharing', 10, 2 );

    Once you activate that plugin, it should prevent the sharing buttons from appearing in sidebars.

    Cheers,
    Brady

    I’ve got a similar issue with Ninja Forms.
    If I append a form to a page, the same form appears duplicated under the sidebar image widget.
    I solved it using the Ninja Form shortcode.
    I’m looking for a more elegant solutions in order to enable the use of the append form option.
    Besides that, It’s a great plugin.
    Thanks!

    Thread Starter mollymcclelland

    (@mollymcclelland)

    I have to admit that I still haven’t implemented Brady’s fix – I have never looked under the hood of WP and am not quite sure where/how to insert the plugin he was kind enough to supply me. I will take a serious stab at this and report back on my success. I do love Jetpack and am amazed at how much a non-programming type like me can do without ever resorting to code!

    Plugin Author Brady Vercher

    (@bradyvercher)

    I went ahead and pushed out an update that removed the filter from the widget text, so there shouldn’t be any more problems with Jetpack or Ninja Forms adding content.

    Cheers,
    Brady

    Thread Starter mollymcclelland

    (@mollymcclelland)

    That is so great, Brady, thanks a million. Will the update come through automatically, or should I visit the Jetpack site to get it?

    I am so impressed that you took your time to address this issue. Probably not a big deal to most people, but it really makes a huge difference to me!

    Plugin Author Brady Vercher

    (@bradyvercher)

    Hey Molly, the update will be for the Simple Image Widget plugin and will come through automatically. If you visit Dashboard -> Updates in your admin panel, it should already be available. Hope that helps!

    Thread Starter mollymcclelland

    (@mollymcclelland)

    Silly me, of course. I was confused. Thanks again for the fix AND your patience!

    Molly

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Jetpack adds sharing buttons to sidebar images’ is closed to new replies.