• i created a custom product page with the template DIVI. Great template btw.

    i activated the yith wishlist plugin and on the custom product page there is a add to wishlist button but i dont need it there, i want it like it is below the add to cart button. How can i remove the upper left button?

    thanks in advance.

    John

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello there,
    hope you are doing well.

    Could you please check that the button on the top left has not been added via shortcode?

    If not, copy the snippet below to your wp-content/themes/your_active_child_theme/functions.php file.

    if ( ! function_exists( 'yith_wcwl_remove_unnecessary_button' ) ) {
    	function yith_wcwl_remove_unnecessary_button() {
    		$jquery = '
    		jQuery(function($){    
    			$(document).find(".clearfix .yith-wcwl-add-to-wishlist").remove()
    		})';
    
    		wp_add_inline_script( 'jquery-yith-wcwl', $jquery );
    		wp_add_inline_script( 'jquery-yith-wcwl-user', $jquery );
    	}
    
    	add_action( 'wp_enqueue_scripts', 'yith_wcwl_remove_unnecessary_button', 99 );
    }

    Have a nice day!

Viewing 1 replies (of 1 total)
  • The topic ‘Remove the button add to wishlist’ is closed to new replies.