New Landing How can we help? Cardinal Remove social share from product page template

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Cardinal
  • #110579
    Pothe
    Member
    Post count: 336

    Hi,
    Can you tell me which php file to look at to remove the social share option on the product page please.
    Thanks

    #110666
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You can disable it with css. Add the code below to your theme custom css options.

    
    .product-share{
    display:none!important;
    }
    
    

    -Rui

    #110717
    Pothe
    Member
    Post count: 336

    Hi Rui,
    Thanks, but that hides it and still loads it.
    I don’t want to load it at all and wil edit the theme files. Just wanted some guidance as to where you’ve put it.
    Thanks

    #110761
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Here:

    cardinal/swift-framework/core/sf-woocommerce.php

      350  			$image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), false, '' );
      351  		?>
      352: 			<div class="article-share product-share" data-buttontext="<?php _e("Share this", "swiftframework"); ?>" data-image="<?php echo $image[0]; ?>"></div>
      353  		<?php }
      354  		add_action( 'woocommerce_single_product_summary', 'sf_product_share', 45);
    

    – Kyle

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.