Hello!
How can I modify woocommerce product by adding “Share this entry” section from post under product image?
I’m talking about “Photography Demo”.
Hi artspbseo!
Thank you for using Enfold.
You can add this on functions.php:
remove_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20);
add_action( 'woocommerce_before_single_product_summary', 'avia_product_share', 20);
if(!function_exists('avia_product_share'))
{
function avia_product_share()
{
global $avia_config;
if(is_product()) {
$avia_config['currently_viewing'] = "shop_single";
get_sidebar();
}
//share links on single post
avia_social_share_links();
echo "</div>";
}
}
Regards,
Ismael
Hey!
I checked functions.php but the code is not there. Please make sure that the wp-content folder has correct file permission in order to edit the file. Please ask your host.
Regards,
Ismael
Now working. Thank you!