This snippet does not work with Enfold 3.1
http://kriesi.at/documentation/enfold/enable-social-share-section-for-pages/
Buttons are placed in “header” instead of “footer”
Hey Roine!
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 = "")
{
$content .= avia_social_share_links(array(), false, '', false);
$content .= '';
return $content;
}
Regards,
Elliott
Sorry, but this code crashes the site.
I had to remove the code directly but attach a link to a screenshot to what this code is created:
`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 .= ”;
return $content;
}
placed in child themes function.php
Hey!
Please remove the code and add “Social share buttons” element under Content elements in Advanced Layout Builder :)
Regards,
Yigit
YES!!!!!! Shame on me!