Jump to content
Sign in to follow this  
janpeeters

Social Widgets

Recommended Posts

janpeeters

Hi, I'm using the 'Socialize This' Wordpress plugin. I like the build in social media function in Platform Pro, but the icons are a bit too big to my liking. So I choose for the plugin I've achieved to place the new social widgets under the posts with a PFP customhook via this code:

add_action('pagelines_loop_after_post_content', 'social_widgets');
	function social_widgets(){
	show_social_widgets();
	}

What I don't succeed in is placing it only under single posts. At this moment it also shows up on static static pages and the blog posts page. I tried to do it via conditional tags but I got stuck. I hope someone can point me in the right direction. Thanks, Jan

Share this post


Link to post
Share on other sites
Andrew

ahh an easy one... change to this: `if(is_single()) show_social_widgets();`

Share this post


Link to post
Share on other sites
janpeeters

Thanks Andrew. How simple could it be. I've been fidling around with this for hours :-( Glad you could help!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×