Home › Forums › WoodMart support forum › Move Content used in HTML Block of "Add to cart button"
Move Content used in HTML Block of "Add to cart button"
- This topic has 7 replies, 2 voices, and was last updated 3 years, 9 months ago by Elise Noromit.
-
AuthorPosts
-
February 17, 2021 at 11:55 am #267292
pritammhatreParticipantDear Team,
Currently content used in Product Page -> After “Add to cart button” text area is showing up just after the ADD to CART Button but i want it to be after the social share icons present on single product page
I need to move the content after the share icons present on the single product page
Can you help
Regards,
PritamFebruary 17, 2021 at 3:33 pm #267374
Elise NoromitMemberHello,
Thank you very much for choosing our theme and for contacting us.
Please add this code to the functions.php of the child theme:
add_action( 'wp', function() { remove_action( 'woocommerce_single_product_summary', 'woodmart_after_add_to_cart_area', 31 ); add_action( 'woocommerce_single_product_summary', 'woodmart_after_add_to_cart_area', 61 ); } );
Best Regards
February 18, 2021 at 8:11 am #267532
pritammhatreParticipantDear Team,
Thanks a lot it is working as expected.
Just small help in same way can we move the – Before “Add to cart button” text area after share icons in same manner which we did for After “Add to cart button” text area
So later we can move any one section or both which suits good for us and use that edit code in functions.php
Would really appreciate your help with sharing the related code to move
Regards,
PritamFebruary 18, 2021 at 8:30 pm #267685
Elise NoromitMemberHello,
Please use the Extra content block with the option “After content” for this purpose. The content would be placed just after the share buttons.
Best Regards
February 19, 2021 at 8:48 pm #267942
pritammhatreParticipantThank you Team for showing one more option which i can utilize but this option does not take place where i want the content to be present, as this takes up a new row after the entire product section and not on the right side just below the share icons
What i need from you is similar code for functions.php of the child theme to move Block – Theme Options -> Product Page
Before “Add to cart button” text area after share iconsYou have already shared this code to move – After “Add to cart button” text area after share icons
I will move any one section not both based on which suits good to use so i can use one section as it is and one moved below the share icons
Will really appreciate your help to share similar code to move Before “Add to cart button” text area after share icons
Regards,
Pritam MhatreFebruary 22, 2021 at 9:18 am #268306
Elise NoromitMemberHello,
Please add this code to the functions.php of the child theme:
add_action( 'wp', function() { remove_action( 'woocommerce_single_product_summary', 'woodmart_before_add_to_cart_area', 25 ); add_action( 'woocommerce_single_product_summary', 'woodmart_before_add_to_cart_area', 62 ); } );
Best Regards
February 22, 2021 at 6:45 pm #268470
pritammhatreParticipantThank you Team for your support
Code Working as expected
February 22, 2021 at 10:13 pm #268517
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
We will appreciate highly if you spend a couple minutes and aswer the questions provided here: https://8uehqcg4tjy.typeform.com/to/IgyV2EiP
Best Regards
-
AuthorPosts
The topic ‘Move Content used in HTML Block of "Add to cart button"’ is closed to new replies.
- You must be logged in to create new topics. Login / Register