The social media sharing buttons on the product page are not displayed correctly, after Enfold update 4.8.3.
See example page.
See this screenshot.
Best regards,
Oriano
I was using the function you find in this topic social-share-buttons-product-page.
With the new version of Enfold the function do not works correctly, and the social icon don’t display properly.
Can you please help us fix the function in order to display correctly the social sharing on the product page?
Best regards
Hi,
Thanks for contacting us!
Please change your code to following one
add_action('woocommerce_after_single_product_summary', 'avia_add_social_toolbar', 1);
function avia_add_social_toolbar()
{
if( is_singular( 'product' ) ) {
$content = '<div class="share_heading">Share this Product</div>';
$content .= avia_social_share_links_single_post(array(), false, '', false);
}
echo $content;
}
add_filter('avia_social_share_title', 'wc_avia_social_share_title');
function wc_avia_social_share_title(){
if( is_singular ( 'is_product' ) ) {
return false;
}
}
If you would like to change social share styling on product pages, you can do so in Enfold theme options > Blog Layout > Share Button Bar Style :)
Best regards,
Yigit
Hi Yigit,
thank you very much :)
Enfold for ever.
Best regards,
Oriano
Hi,
You are welcome, Oriano!
By the way, if you would like to adjust the top margin value between icons and the title, you can use following code
.single-product .av-social-sharing-box {
margin-top: 5px;
}
Let us know if you have any other questions and enjoy your weekend!
Enfold forever! :)
Best regards,
Yigit