Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hi there,
    we hope you’re doing well!

    In order to move the add_to_wishlist button, add this code in the functions.php file of your active child theme:

    if ( defined('YITH_WCWL') && ! function_exists( 'yith_wcwl_move_atw_button_custom' ) ) {
    
    	function yith_wcwl_move_atw_button_custom() {
    		$jquery = '
    				jQuery(document).ready(function($) {
    					$("div.summary.entry-summary .yith-wcwl-add-to-wishlist").insertAfter("div.summary.entry-summary form.variations_form.cart .single_add_to_cart_button");
    				});';
    	
    		wp_add_inline_script('jquery-yith-wcwl', $jquery);
    		wp_add_inline_script('jquery-yith-wcwl-user', $jquery);
    	}
       
    	add_action( 'wp_enqueue_scripts', 'yith_wcwl_move_atw_button_custom', 99 );
       
    }

    And add this CSS in Appearance > Customize > Additional CSS:

    div.summary.entry-summary form.variations_form.cart .single_add_to_wishlist {
      margin-left: 34px !important;
    }

    Try it out and tell us if its works well for you.

    We will be attentive to your response.

    Have a nice day!

    Thread Starter aetkin

    (@aetkin)

    I tried what you suggested, but nothing changed at all. 🙁

    Thread Starter aetkin

    (@aetkin)

    Disregard my previous response. I realized after posting it that I needed to change the button settings in the plugin options to “custom” & then enter the css there as well. That did the trick! Thank you!

    Thread Starter aetkin

    (@aetkin)

    Oops…spoke to soon.

    Works on some pages, but not all.

    See https://www.mishmashorganics.com/product/active-cbd-gold-oil/

    BUT, also see https://www.mishmashorganics.com/product/essen-oils-eucalyptus/

    Dagnabit.

    Thread Starter aetkin

    (@aetkin)

    It seems as if the code you provided works on variable products, but not on simple products? Any ideas are appreciated!

    Hello there,

    Thanks for contacting us, we hope you are doing well!

    The first link you sent is not working now, but in the other case you will need to adapt the code to can fix it in all of your personal cases.

    These problems are related to the integration of our plugin with the theme you are using.

    If you remove the code we sent to you and change the theme you will see a different distribution. You could search in your theme if you have some options that could affect your pages.

    Let us know any news, please

    Have a nice day!

    Thread Starter aetkin

    (@aetkin)

    I tried three other themes and it made no difference. I’d rather not switch anyway as I’ve paid for the “pro” version of my existing theme.

    I do not understad ” in the other case you will need to adapt the code to can fix it in all of your personal cases.”

    or

    “ou could search in your theme if you have some options that could affect your pages.”

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cannot move ATW button & a question’ is closed to new replies.