Quantcast
Channel: WordPress.org Forums » [Jetpack - WP Security, Backup, Speed, & Growth] Support
Viewing all articles
Browse latest Browse all 37023

mpmchugh on "[Plugin: Jetpack by WordPress.com] Share Buttons on homepage sharing Blog post link"

$
0
0

I'm using a WooTheme called PixelPress, and its homepage is a mess out of the box with Sharing on the homepage. I used the code to disable sharing in excerpts:

function jptweak_remove_share() {
    remove_filter( 'the_excerpt', 'sharing_display',19 );
}
 
add_action( 'loop_end', 'jptweak_remove_share' );

This helped, but when I use the code to place the sharing buttons via the template for just the homepage, they work, but share the most recent blog post, rather than the homepage.

if ( function_exists( 'sharing_display' ) )
    sharing_display( '', true );

Is there a way to force the link used by this code to use the homepage URL?

Site is here: http://changingeyewear.com

Note. I'm using the standard the_content sharing on the rest of the site, which is fine. I'm just having trouble getting the homepage sharing buttons to share the homepage URL.

Thanks,
Michael

http://wordpress.org/extend/plugins/jetpack/


Viewing all articles
Browse latest Browse all 37023

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>