Tagged: x
-
AuthorPosts
-
October 27, 2016 at 2:53 am #1232772
SirRahikkalaParticipantOk, I have had the social media buttons on every product page like in this thread:
/*adding social sharing buttons to woocommerce product pages */ add_action("woocommerce_single_product_summary", "add_social_sharing_to_product_page", 60); function add_social_sharing_to_product_page() { echo do_shortcode("[share title='Share this Product' facebook='true' twitter='true' linkedin='true' pinterest='true' email='true' class='mtl']"); } add_action('x_before_the_content_end', function() { echo do_shortcode("[share title='Share this Product' facebook='true' twitter='true' linkedin='true' pinterest='true' email='true' class='mtl']"); });But I would like to move them from below product details to below the product images.
October 27, 2016 at 2:57 am #1232773
RupokMemberHi there,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
October 27, 2016 at 3:12 am #1232787
SirRahikkalaParticipantThis reply has been marked as private.October 27, 2016 at 3:21 am #1232796
Rue NelModeratorHello There,
Thanks for providing the url. To resolve this issues, please use this code instead:
/*adding social sharing buttons to woocommerce product pages */ add_action("woocommerce_single_product_summary", "woocommerce_after_single_product_summary", 60); function add_social_sharing_to_product_page() { echo do_shortcode("[share title='Share this Product' facebook='true' twitter='true' linkedin='true' pinterest='true' email='true' class='mtl']"); } add_action('x_after_the_content_end', function() { echo do_shortcode("[share title='Share this Product' facebook='true' twitter='true' linkedin='true' pinterest='true' email='true' class='mtl']"); });We would loved to know if this has work for you. Thank you.
October 27, 2016 at 3:37 am #1232801
SirRahikkalaParticipantThis reply has been marked as private.October 27, 2016 at 3:40 am #1232808
Rue NelModeratorHello Again,
Sorry there was a typographic error on the code. Please use this instead:
/*adding social sharing buttons to woocommerce product pages */ add_action("woocommerce_after_single_product_summary", "add_social_sharing_to_product_page", 60); function add_social_sharing_to_product_page() { echo do_shortcode("[share title='Share this Product' facebook='true' twitter='true' linkedin='true' pinterest='true' email='true' class='mtl']"); } add_action('x_after_the_content_end', function() { echo do_shortcode("[share title='Share this Product' facebook='true' twitter='true' linkedin='true' pinterest='true' email='true' class='mtl']"); });Please let us know if this works out for you.
October 27, 2016 at 3:43 am #1232812
SirRahikkalaParticipantNow they are at side of the images from top to down, not below in a row. See attachment.
October 27, 2016 at 3:54 am #1232818
Rue NelModeratorHello There,
You can update the code and use this:
/*adding social sharing buttons to woocommerce product pages */ add_action("woocommerce_after_single_product", "add_social_sharing_to_product_page", 60); function add_social_sharing_to_product_page() { echo do_shortcode("[share title='Share this Product' facebook='true' twitter='true' linkedin='true' pinterest='true' email='true' class='mtl']"); } add_action('x_after_the_content_end', function() { echo do_shortcode("[share title='Share this Product' facebook='true' twitter='true' linkedin='true' pinterest='true' email='true' class='mtl']"); });Hope this helps. Please let us know how it goes.
October 27, 2016 at 6:41 am #1232983
SirRahikkalaParticipantThis reply has been marked as private.October 27, 2016 at 12:07 pm #1233467
JadeModeratorHi there,
Please add this code in the Custom JS:
(function($){ $('.single-product .x-entry-share').clone().appendTo('.woocommerce-page div.product .images'); })(jQuery);Then add this code in the custom CSS:
.single-product .x-entry-share { display: none; } .single-product .images .x-entry-share { clear: both; display: block; text-align: center; }Hope this helps.
October 27, 2016 at 12:20 pm #1233489
SirRahikkalaParticipantAlmost there! now we lost the tooltips.
October 27, 2016 at 1:59 pm #1233617
RupokMemberHi there,
Thanks for wriitng back. No worries, that could be fixed with some CSS. You can add this under Custom > CSS in the Customizer.
.single-product .x-entry-share { padding: 40px 0; }Cheers!
October 28, 2016 at 6:59 am #1234680
SirRahikkalaParticipantThank you!
October 28, 2016 at 11:41 am #1234953
JadeModeratorYou’re welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1232772 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
