I just updated my theme for 3.1.1. In my child theme I had added the following code to add the Share this functionality to the bottom of all pages; however, with the theme update that Share This is now appear at the top of the content area of the page with the content overlaying the buttons. What do I need to resolve this?
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;
}
function modify_share_title(){
return “Share this”;
}
add_filter(‘avia_social_share_title’, ‘modify_share_title’);
Hey endoradigital!
You can remove the code and use new “Social Share Buttons” element under Content elements in Advanced Layout Builder :)
Regards,
Yigit
That is an option; however, I liked the fact that when a new page was created it was automatically added. Is that possible?
Hey!
Please refer to this post – https://kriesi.at/support/topic/show-social-sharing-in-avia-code-broken-after-enfold-update-3-1-1/#post-415640
Best regards,
Yigit
The information from the other post worked great; however, the main blog page does not show the social sharing icons. The single post pages do.
I changed the blog to use the advanced layout builder and now it adds the social sharing.