• I would like to show Wishlist icon beside add to cart button in the same line. Anyone can help me to do so?

    Here’s the screenshot where i want to place the wishlist icon.

    https://ibb.co/7WJdT1c

    I tried to change the position to “After add to cart” but it does not work. It shows in the bottom of add to cart.

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

    (@yithemes)

    Hi there

    If you want to move Add to Wishlist button immediatly after Add to Cart button, I suggest you to set “Use Shortcode” as location, and to place the following code at the end of functions.php file of your themes or childs

    if( defined( 'YITH_WCWL' ) && ! function_exists( 'yith_wcwl_move_wishlist_button' ) ){
    	function yith_wcwl_move_wishlist_button(  ){
    		echo do_shortcode( '[yith_wcwl_add_to_wishlist]' );
    	}
    	add_action( 'woocommerce_after_add_to_cart_button', 'yith_wcwl_move_wishlist_button' );
    }
    

    This should move Add to Wishlist button inside Add to Cart form
    Now all you have to do is to apply some Custom CSS in order to make button on the right of the Add to Cart, if this is what you want to obtain, and if there is room enough

    Please, let me know if this works as epxected

    Hello!

    I need help ?? I use woodmart theme, and they said that they can’t help me, but they use your plugin or whatever for add to wishlist option.

    My problem is that I want to put heart wishlist icon next to Add to cart button. I tried all snippet codes from google. But nothing helped. Do you have some instructions or suggest?

    Hi,

    Given code is working fine but now its showing at bot place.
    beside Add to cart button as well as default position so showing twice. could you please advice.

    Thanks
    Make

    In Flatsome, it does not work as expected. The Button is still located under the “add to cart” Button…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Move Wishlist button beside add to cart’ is closed to new replies.