We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support WPSP Social Icons (class="wpsp-social") shortcode? Reply To: WPSP Social Icons (class="wpsp-social") shortcode?


I tried and it worked. But I do not understand one thing.

get_the_title() is output at the exact location, where I placed the shortcode [xxx_wpsp_social_sharing] in the post content. The social icons, however, are at the top left on the website. Why?

function wpsp_social_sharing_shortcode() {
	return get_the_title() . wpsp_social_sharing( get_the_ID(), $twitter = true, $facebook = true, $googleplus = true, $pinterest = true, $love = true );
	wp_enqueue_script( 'wpsp-love-it' );
add_shortcode( 'xxx_wpsp_social_sharing', 'wpsp_social_sharing_shortcode' );