Hi there
@martinakuhada I was checking your theme, and actually it doesn’t look like it is using our plugin for wishlist
It seems more like a custom implementation of wishlist, made specifcally for the theme (none of the classes, or html structure matches with what I’d expect; I don’t even find any assets loaded from our plugin)
So I’m not sure how to help ?? Anyway, i think @konsument suggestion is a good starting point
The idea is to locate the code that prints the Add to Wishlist button, remove from its current hook, and hook it somewhere else (specifically to woocommerce_after_add_to_cart_button
hook)
Here an example of what I’d do for YITH WooCommerce Wishlist plugin
if ( ! function_exists( 'yith_wcwl_custom_atw_position' ) ) {
function yith_wcwl_custom_atw_position() {
if ( ! function_exists( 'YITH_WCWL_Frontend' ) ) {
return;
}
add_action( 'woocommerce_after_add_to_cart_button', array( YITH_WCWL_Frontend(), 'print_button' ) );
}
}
add_action( 'init', 'yith_wcwl_custom_atw_position' );
If I run this code (by adding it at the end of functions.php file of my theme), Add to Wishlist button is placed immediately after Add to Cart button
Then I just need to
– Set “Position of “Add to wishlist” on product page” as “Use Shortcode” in plugin’s settings
– add a css rule to make ATW container inline
and this is my final result
I suppose something similar will be needed in your specific case, but unfortunatley you’ll need to check with theme’s support I think
-
This reply was modified 3 years, 11 months ago by YITHEMES.