Home › Forums › Themes Support › Claue › Text and Instagram Icon below Add to Cart, in Product Page
- This topic has 8 replies, 2 voices, and was last updated 4 years ago by Harry.
-
AuthorPosts
-
-
November 27, 2020 at 10:15 pm #39390seventalentsSupport Expired
How can I add a text like “Condividi su” before Social Icons below Add to Cart, in Product Page. See attached screenshot.
Besides how can I add there the Instagram Icon to share the Product Page on Instagram?
Attachments:
You must be logged in to view attached files. -
November 27, 2020 at 10:56 pm #39403HarrySupport Expired
Hi,
Please add below code to claue-child > functions.php
add_action( 'wp_head', 'remove_my_action' ); function remove_my_action(){ remove_action( 'woocommerce_single_product_summary', 'jas_claue_wc_single_social_share', 50 ); } function jas_claue_child_wc_single_social_share() { if ( cs_get_option( 'wc-social-share' ) ) { echo '<h3>Condividi su</h3>'; jas_claue_social_share(); } } add_action( 'woocommerce_single_product_summary', 'jas_claue_child_wc_single_social_share', 50 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 27, 2020 at 11:38 pm #39411seventalentsSupport Expired
Thanks Harry,
but how can I also add the Instagram Icon to share the Product Page on Instagram?
-
November 28, 2020 at 8:17 am #39419HarrySupport Expired
Hi,
Instagram doesn’t support share product https://www.healthhosts.com/no-social-share-button-for-instagram-why-is-that/
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 30, 2020 at 4:58 pm #39434seventalentsSupport Expired
thanks!
-
December 5, 2020 at 1:03 am #39478seventalentsSupport Expired
You suggested me to add the following code to claue-child > functions.php
add_action( ‘wp_head’, ‘remove_my_action’ ); function remove_my_action(){ remove_action( ‘woocommerce_single_product_summary’, ‘jas_claue_wc_single_social_share’, 50 ); } function jas_claue_child_wc_single_social_share() { if ( cs_get_option( ‘wc-social-share’ ) ) { echo ‘<h3>Condividi su</h3>’; jas_claue_social_share(); } } add_action( ‘woocommerce_single_product_summary’, ‘jas_claue_child_wc_single_social_share’, 50 );
But how can I translate “Condividi su” (before Social Icons below Add to Cart, in Product Page)?
I have installed WMPL, but I can’t translate it in English.
-
December 5, 2020 at 6:46 pm #39483HarrySupport Expired
Hi,
Please change code to
add_action( 'wp_head', 'remove_my_action' ); function remove_my_action(){ remove_action( 'woocommerce_single_product_summary', 'jas_claue_wc_single_social_share', 50 ); } function jas_claue_child_wc_single_social_share() { if ( cs_get_option( 'wc-social-share' ) ) { ?> <h3><?php esc_html_e( 'Share on', 'claue' ); ?></h3> <?php jas_claue_social_share(); } } add_action( 'woocommerce_single_product_summary', 'jas_claue_child_wc_single_social_share', 50 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 10, 2020 at 4:32 pm #39545seventalentsSupport Expired
Hi,
if I change the code, I see “Share on” both on Italian version than on English version.
I’d like “Condividi su” on Italian version and “Share on” on English version. How to, please?
-
December 10, 2020 at 5:00 pm #39547HarrySupport Expired
Hi,
Please use WPML to translate the text.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.