Home Forums Themes Support Claue Text and Instagram Icon below Add to Cart, in Product Page

Topic Resolution: Resolved
Viewing 8 reply threads
  • Author
    Posts
    • #39390
      seventalents
      Supported

      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.
    • #39403
      Harry
      Supported

      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

    • #39411
      seventalents
      Supported

      Thanks Harry,

      but how can I also add the Instagram Icon to share the Product Page on Instagram?

    • #39419
      Harry
      Supported

      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

    • #39434
      seventalents
      Supported

      thanks!

    • #39478
      seventalents
      Supported

      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.

    • #39483
      Harry
      Supported

      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

    • #39545
      seventalents
      Supported

      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?

    • #39547
      Harry
      Supported

      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

Viewing 8 reply threads

You must be logged in to reply to this topic.