Tagged: page, sharing, social share
Hi,
I saw in your documentation this post: http://kriesi.at/documentation/enfold/enable-social-share-section-for-pages/
At the bottom you say: “In combination with wp conditionals, you can choose to hide or show the social share section on different pages, products or posts.”
Could you please describe there or here, how to activate or deactivate the social sharing options only on some special pages, I mean not generally on all pages?
I don’t know PHP, so I would appreciate any help concerning this subject. Thank you!
Hi COLORIT!
Try this out.
add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1);
function avia_add_social_toolbar_template_builder($content = "")
{
if ( is_page( array( 1, 2, 3 ) ) ) { $content .= avia_social_share_links(array(), false); }
$content .= '';
return $content;
}
Where 1, 2, 3, etc are the ID’s of the pages you want it to display on.
Best regards,
Elliott