Hi, I am wondering how I can put the social sharing buttons on the bottom of any page of my website? I tried to use a code that I found while researching the topic on the forums, but it doesn’t work when I use it in the advanced layout editor. Thanks
add_action(‘ava_after_content’, ‘avia_add_social_toolbars’, 10, 2);
function avia_add_social_toolbars($id = “”, $context = “”)
{
if($context == “page” || $context == “single-portfolio” || $context == “product”)
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 .= ‘<div id=”custom_share_box” class=”avia-section main_color container_wrap”><div class=”container”>’;
$content .= avia_social_share_links(array(), ”, ”, false);
$content .= ‘</div>’;
return $content;
}