Hello there,
we hope you’re doing well!
Could you share the link to one of your products in which those buttons appear? Also tell us the text for which you want to change, please.
We will be attentive to your response.
Best regards.
Hello,
The buttons appear in the member area ( /my-account/my-wishlist/ ). and they are one below the other but not side by side.
The text is “Quick view”
I would like to add a class to the add to cart button because it does not take the style of my theme even when the box “Button with theme template”
Hello there,
thanks for your patience.
We need to view your site to see what’s going on and apply the correct CSS. Could you share the link, please?
We will be attentive to your response.
Have a nice day!
Hello there,
In order to add a class to the button, add the following code in the functions.php file of your active child theme:
if ( ! function_exists( 'yith_wcwl_add_class_in_add_to_cart' ) ) {
function yith_wcwl_add_class_in_add_to_cart() {
$jquery = 'jQuery( function( $ ) {
$( ".wishlist_table td.product-add-to-cart a" ).addClass( "your_class" );
});';
wp_add_inline_script( 'jquery-yith-wcwl', $jquery );
wp_add_inline_script( 'jquery-yith-wcwl-user', $jquery );
}
add_action( 'wp_enqueue_scripts', 'yith_wcwl_add_class_in_add_to_cart', 999 );
}
Check it out and tell us if it works well for you, please.
Best regards.
Thank you for your reply
I add my class but the button does not change design
Cordially