Hey there. I can see that there are social share buttons in the posts. Is there an element to create those buttons with the page builder as well so I could also place them in a portfolio? Sure I can download another plug in but if it is already included in the posts it might be smart to reuse it…
Hey Gabster!
Thank you for using Enfold.
You can add this on functions.php to add the social share section at the bottom of the portfolio items:
add_action('ava_after_content', 'avia_add_social_toolbar', 10, 2);
function avia_add_social_toolbar($id = "", $context = "")
{
if($context == "page" || $context == "single-portfolio")
avia_social_share_links();
}
add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1);
function avia_add_social_toolbar_template_builder($content = "")
{
$content .= avia_social_share_links(array(), false);
$content .= '<div style="height:1px; margin-top:50px;" class="hr"></div>';
return $content;
}
Regards,
Ismael