Home › Forums › WoodMart support forum › NO after "Add to cart button" text area content!
NO after "Add to cart button" text area content!
- This topic has 5 replies, 2 voices, and was last updated 6 years, 5 months ago by Elise Noromit.
-
AuthorPosts
-
July 23, 2018 at 6:09 am #68766
b4hr4mParticipantHi,
The after text area content somehow goes inside the wishlist div and it doesn’t show any content. Installed fresh new theme with no child theme customization and also disabled wishlist plugin but still had a problem. Please check the attachment.Attachments:
You must be logged in to view attached files.July 23, 2018 at 6:21 am #68772
Elise NoromitMemberHello,
Please update your theme. Follow the instructions provided: https://xtemos.com/docs/woodmart/update-theme-2/
Best Regards
July 23, 2018 at 6:25 am #68773
b4hr4mParticipantI already did that! Still nothing
July 23, 2018 at 6:33 am #68775
b4hr4mParticipantEven if I deactivate the YITH WooCommerce Wishlist plugin, still the after add to cart content goes inside the div with “wishlist-btn-wrapper” class:
<div class="wishlist-btn-wrapper"> <div class="woodmart-after-add-to-cart">sfsdfsdf</div> </div>
July 23, 2018 at 6:58 am #68783
b4hr4mParticipantI found the problem in woocommerce.php in inc folder:
This is the code for after add to cart section:
add_action( 'woocommerce_single_product_summary', 'woodmart_after_add_to_cart_area', 31 );
And this is for wishlist section:
add_action( 'woocommerce_single_product_summary', 'woodmart_before_wishlist_button', 30 ); add_action( 'woocommerce_single_product_summary', 'woodmart_after_wishlist_button', 32 );
As you can see, the “woodmart_after_add_to_cart_area” will go inside the “woodmart_after_wishlist_button” because of the 31 value.
I changed the code to this:
add_action( 'woocommerce_single_product_summary', 'woodmart_after_add_to_cart_area', 30 ); add_action( 'woocommerce_single_product_summary', 'woodmart_before_wishlist_button', 31 ); add_action( 'woocommerce_single_product_summary', 'woodmart_after_wishlist_button', 32 );
And it works now!
I didn’t change this file at all so I don’t know if this caused the problem or not! Am I right about the solution?
July 23, 2018 at 7:50 am #68796
Elise NoromitMemberHello,
Please add this code to functions.php of the child theme:
remove_action( 'woocommerce_single_product_summary', 'woodmart_before_wishlist_button', 30 ); remove_action( 'woocommerce_single_product_summary', 'woodmart_after_wishlist_button', 32 );
And this code to Theme Settings > Custom CSS > Global CSS:
.summary-inner > .yith-wcwl-add-to-wishlist { display: inline-block; vertical-align: middle; line-height: 1; font-size: 0; margin-right: 20px; margin-bottom: 20px; } .summary-inner > .yith-wcwl-add-to-wishlist a { display: inline-block; vertical-align: middle; font-size: 14px; line-height: 1; font-weight: 600; color: #333333; position: relative; } .summary-inner > .yith-wcwl-add-to-wishlist a:before { margin-right: 5px; font-weight: normal; vertical-align: middle; display: inline-block; } .woodmart-dark .summary-inner > .yith-wcwl-add-to-wishlist a { color: white; } .summary-inner > .yith-wcwl-add-to-wishlist a { letter-spacing: 0; padding: 0; background-color: transparent; text-transform: none; } .summary-inner > .yith-wcwl-add-to-wishlist a:before { transition: opacity .1s ease; -webkit-transition: opacity .1s ease; } .summary-inner > .yith-wcwl-add-to-wishlist a:after { content: ""; width: 14px; height: 14px; display: inline-block; vertical-align: middle; border: 1px solid #bbbbbb; border-left-color: #333333; border-radius: 50%; position: absolute; top: 50%; left: 0; margin-top: -7px; opacity: 0; transition: opacity .2s ease; -webkit-transition: opacity .2s ease; } .summary-inner > .yith-wcwl-add-to-wishlist a:focus, .summary-inner > .yith-wcwl-add-to-wishlist a:hover { box-shadow: none; } .woodmart-dark .summary-inner > .yith-wcwl-add-to-wishlist a:after { border-color: rgba(255, 255, 255, 0.15); border-left-color: white; } .summary-inner > .yith-wcwl-add-to-wishlist a { display: inline-flex; align-items: center; flex-direction: row; } .summary-inner > .yith-wcwl-add-to-wishlist a:before { content: "\f108"; font-family: "woodmart-font"; } .summary-inner > .yith-wcwl-add-to-wishlist .woodmart-tooltip-label { display: none; } .summary-inner > .yith-wcwl-add-to-wishlist .yith-wcwl-add-button.feid-in > a:after { opacity: 1; animation: wd-rotate 450ms infinite linear; } .summary-inner > .yith-wcwl-add-to-wishlist .yith-wcwl-add-button.feid-in > a:before { opacity: 0; }
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register