Hi there,
I have Custom Post Types whos posts are built using the Page Builder. I need to incorporate the social sharing at the bottom. How can I do this and what file do I need to edit. Also, can this be controlled by using a shortcode or component in Page Builder?
Hi fulanoinc!
Thank you for using Enfold.
Unfortunately, it’s not possible to add the social share using the advance layout builder. Try this on functions.php:
add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1);
function avia_add_social_toolbar_template_builder($content = "")
{
if(is_singular('CUSTOM POST TYPE')){
$content .= avia_social_share_links(array(), false);
$content .= '<div style="height:1px; margin-top:50px;" class="hr"></div>';
}
return $content;
}
Cheers!
Ismael
Thanks!