• Resolved nickfr

    (@nickfr)


    i would like when visitors clicks add to wishlist not to work with ajax and to lad the page with this url parameter. is it possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there

    yes, you’ll need to remove add_to_wishlist class from ATW anchor tag
    In order to do so, please try to add the following snippet of code at the end of functions.php file of your theme or child theme

    if ( ! function_exists( 'yith_wcwl_deajaxify_button' ) ) {
    	function yith_wcwl_deajaxify_button( $classes ) {
    		$classes = str_replace( 'add_to_wishlist', '', $classes );
    		return $classes;
    	}
    	add_filter( 'yith_wcwl_add_to_wishlist_button_classes', 'yith_wcwl_deajaxify_button' );
    }
    
    Thread Starter nickfr

    (@nickfr)

    thanks it worked!!!

    Plugin Author YITHEMES

    (@yithemes)

    You’re welcome

    If you enjoy our plugin, please take a couple of minutes to leave us a 5 star review; this would really help, and support our work
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘?add_to_wishlist not ajax’ is closed to new replies.