Tagged: x
-
AuthorPosts
-
June 14, 2016 at 6:58 pm #1042315
doohikeyParticipantYou are awesome! 🙂
June 14, 2016 at 11:39 pm #1042660
NicoModeratorYou are awesome as well 🙂
Feel free to ask us again.
Thanks.
June 23, 2016 at 4:09 pm #1056995
doohikeyParticipantNow 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?
June 23, 2016 at 9:35 pm #1057465
FriechModeratorHi 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.
June 26, 2016 at 7:52 am #1060057
doohikeyParticipantI’d rather have it in the product description at the bottom.
Thanks!
June 26, 2016 at 8:11 am #1060066
ChristopherModeratorH 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.
June 26, 2016 at 8:22 am #1060074
doohikeyParticipantThat 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.
June 26, 2016 at 3:10 pm #1060353
RadModeratorHi 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.
June 26, 2016 at 7:52 pm #1060660
doohikeyParticipantSeriously.. 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.
June 26, 2016 at 7:54 pm #1060665
doohikeyParticipantAnd i don’t want the title product on top of the sharing tabs either. It’s doing a weird title. I took it off.
June 26, 2016 at 8:00 pm #1060672
doohikeyParticipanti 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.
June 26, 2016 at 10:15 pm #1060794
RadModeratorHi 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.
June 26, 2016 at 11:50 pm #1060860
doohikeyParticipantThe 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.
June 27, 2016 at 12:32 am #1060905
RadModeratorHi 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!
June 27, 2016 at 12:56 am #1060918
doohikeyParticipantPerfect thank you!!!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1037480 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
