Woo Product Page and Classic Social Share

I can’t find the place where I added social share to the product page. It is classic social share and seemed to become corrupted site wide. On other pages I deleted it and created a global item to replace it but for the products I can not figure out how to access the information to delete or to add a new item. Can you tell me where I can do that? Is it a setting? If so can I select a Global Item instead and add social share from that? Here is the page to look at as an example. Thank you in advance! https://poggiwines.com/product/2015-diamond-mountain-cabernet-sauvignon/

Hi There,

Please update your custom code to this:

function add_social_sharing_to_product_page() {
  echo do_shortcode("[share title='Share this product' facebook='true' twitter='true' google_plus='true' pinterest='true' email='true' class='mtl']");
}
add_action( 'woocommerce_single_product_summary', 'add_social_sharing_to_product_page', 35 );

If it still doesn’t work, would you mind providing us with login credentials(by clicking on the Secure Note button at the bottom) so we can take a closer look? To do this, you can make a post with the following info:

  • Link login to your site
  • WordPress Admin username / password

Thanks.

Hi. I do not see a change. I’m providing info. Thank you.

Hey @GeorgiaG,

I changed the hook @thai gave from woocommerce_single_product_summary to this woocommerce_share. It now displays under your cart button. If you want it anywhere else, please refer to this site https://businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/. For more WooCommerce hooks, I’d recommend you consult with a third party developer.

The icons does not show in there because of the custom CSS in your Theme Options > CSS. Please remove it.

I also see other syntax errors in your CSS. Please paste all your custom CSS in http://csslint.net/ to see the errors. You must remove them to prevent issues.

Hope that helps.

Thank you very much! Best.

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.