Your account expired support, please renew to get your support.

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

    • #39411
      seventalents
      Support Expired

      Thanks Harry,

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

    • #39419
      Harry
      Support 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

    • #39434
      seventalents
      Support Expired

      thanks!

    • #39478
      seventalents
      Support 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.

    • #39483
      Harry
      Support 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

    • #39545
      seventalents
      Support 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?

    • #39547
      Harry
      Support 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

Viewing 8 reply threads

You must be logged in to reply to this topic.