Wishlist reposition on the product page
-
Hello,
I want to put the wishlist button after the add to cart button, because now it’s showed after the After “Add to cart button” text area and it’s too far.
Attachments:
You must be
logged in to view attached files.
Hello,
HTML structure does not allow solving it by custom CSS. Such modification requires complicated Woocommerce code customization which is not covered by our support.
If you have any questions please feel free to contact us.
Best Regards
Ok, but can you tell me in what file is this code located?
I can’t find where this div is: <div class=”woodmart-wishlist-btn wd-action-btn wd-wishlist-btn wd-style-text”>
Hello,
Please provide your site URL, if your site is under construction, please provide your site admin access.
Best Regards
After a few hours off digging i found the file path: wp-content/themes/woodmart/inc/integrations/woocommerce/modules/wishlist/class-ui.php
And I changed the number from 33 to 30 here:
if ( ( woodmart_get_opt( ‘wishlist_logged’ ) && is_user_logged_in() ) || ! woodmart_get_opt( ‘wishlist_logged’ ) ) {
add_action( ‘woocommerce_single_product_summary’, array( $this, ‘add_to_wishlist_single_btn’ ), 30 );
Would appreciate if you can help me with a function that i can place in child functions.php, when i upgrade the theme there is no need to modify again. Thank you
Hello,
If you add the code to the fundctions.php of the child theme it would remain even after the parent theme update. In any case please make the full backup of your site before each update.
Best Regards