Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1042315
    doohikey
    Participant

    You are awesome! 🙂

    #1042660
    Nico
    Moderator

    You are awesome as well 🙂

    Feel free to ask us again.

    Thanks.

    #1056995
    doohikey
    Participant

    Now I may want to add the share to my product pages on woocommerce product pages, which i still can’t edit in cornerstone which is a huge turn off. When will you guys get that fixed?

    #1057465
    Friech
    Moderator

    Hi There,

    You can follow this post on adding social share button on product page.

    https://community.theme.co/forums/topic/need-help-adding-the-entry-share-code/

    Thanks.

    #1060057
    doohikey
    Participant

    I’d rather have it in the product description at the bottom.

    Thanks!

    #1060066
    Christopher
    Moderator

    H there,

    Please update your code :

    add_action('woocommerce_single_product_summary', 'add_share_product_details', 9 );
    function add_share_product_details() {
      echo do_shortcode('[share title="Share this product" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]');
    }

    To :

    add_action('woocommerce_after_single_product_summary', 'add_share_product_details', 9 );
    function add_share_product_details() {
      echo do_shortcode('[share title="Share this product" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]');
    }

    Hope it helps.

    #1060074
    doohikey
    Participant

    That is still adding to under the categories.

    I want to put it in the TAB SECTION under the Description TAB. this still populates in the wrong place.

    #1060353
    Rad
    Moderator

    Hi there,

    Try this one,

    add_filter('woocommerce_short_description', 'add_share_product_details', 99999 );
    function add_share_product_details( $content ) {
      echo $content.do_shortcode('[share title="Share this product" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]');
    }

    Hope this helps.

    #1060660
    doohikey
    Participant

    Seriously.. in the tab section not the product description. I don’t know why you can’t understand what I’m asking for.

    You know the three tabs at the bottom of the page? Yeah… in that description area.

    #1060665
    doohikey
    Participant

    And i don’t want the title product on top of the sharing tabs either. It’s doing a weird title. I took it off.

    #1060672
    doohikey
    Participant

    i need this in the tab section…. at the bottom of the page. In the description area. Not the PRODUCT DESCRIPTION at the top. I have explained this several times.

    #1060794
    Rad
    Moderator

    Hi there,

    We understand, but what we provided are just hooks given by Woocommerce, it’s their standard and not ours. All information are displayed by that plugin and we only wrap them with our theme. Woocommerce doesn’t simply utilize the_content filter like the usual posts and pages. It’s not simple as dropping it on functions.php, woocommerce has its own structure different from WordPress post/page hooks.

    In that case, please add it to the description of your product in admin (within the editor where you’re adding descriptions).

    What you’re trying to achieve is still possible but through custom development. You’ll have to edit woocommerce code that is responsible for displaying those inputted data.

    I’ll continue checking if it’s possible with simple tweaks. But I can’t guarantee.

    Thanks for understanding.

    #1060860
    doohikey
    Participant

    The problem is we can’t edit this in cornerstone to add the share where we want to. If you could get that fixed, it would be so much easier to edit product.

    #1060905
    Rad
    Moderator

    Hi there,

    It looks like it’s also utilizing the_content, I tried this and it works.

    add_filter('the_content', 'add_share_product_details', 99999 );
    
    function add_share_product_details( $content ) {
      
      return is_singular('product') ? $content.do_shortcode('[share title="Share this product" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]') : $content;
    
    }

    Please try that. Thanks!

    #1060918
    doohikey
    Participant

    Perfect thank you!!!

  • <script> jQuery(function($){ $("#no-reply-1037480 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>