• Resolved kirjozzz

    (@kirjozzz)


    Hello. How can I make the shop page wishlist button show under the image in the center? I don’t have add-to-cart buttons. also, when product is added to wishlist, How to I make it look green, when its not – red. Thank you in advance.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter kirjozzz

    (@kirjozzz)

    …shop page wishlist button show under the image in the center…

    I meant under product name.

    Thread Starter kirjozzz

    (@kirjozzz)

    I have managed to change colors, but I came to another problem:

    I’m not using WP login system, and I have a custom login page. How do I make so that unregistered users can’t add to the wishlist, if they try they will be redirected to my login page?

    Plugin Support Antonio La Rocca

    (@therock130)

    Hi there

    How can I make the shop page wishlist button show under the image in the center?

    Could you please try to tweak Position of “Add to wishlist” in loop option, that you can find under WP Dashboard -> YITH -> Wishlist -> Add to Wishlist options -> Loop settings?
    I think that “Before Add to Cart” should work just fine, even if you don’t show Add to Cart on loop

    I’m not using WP login system, and I have a custom login page. How do I make so that unregistered users can’t add to the wishlist, if they try they will be redirected to my login page?

    This is more tricky; I could help you to hide Add to Wishlist button for guest users, by using some custom PHP code
    Anyway, if you want Add to Wishlist button to appear, and redirect to login page, I suggest you to check plugin’s landing page on our site, since we offer a similar feature on another version of the software
    Let me know if you want to proceed with the custom code

    Thread Starter kirjozzz

    (@kirjozzz)

    Could you please try to tweak Position of “Add to wishlist” in loop option, that you can find under WP Dashboard -> YITH -> Wishlist -> Add to Wishlist options -> Loop settings?
    I think that “Before Add to Cart” should work just fine, even if you don’t show Add to Cart on loop

    I have tried doing that, it didn’t work. Maybe this is because I’m using this CSS?

    .ct-woo-card-actions {
        display:none;
     }

    This is more tricky; I could help you to hide Add to Wishlist button for guest users, by using some custom PHP code
    Anyway, if you want Add to Wishlist button to appear, and redirect to login page, I suggest you to check plugin’s landing page on our site, since we offer a similar feature on another version of the software
    Let me know if you want to proceed with the custom code

    That will be grate if you can help me with custom code.

    Thread Starter kirjozzz

    (@kirjozzz)

    I have tried doing that, it didn’t work. Maybe this is because I’m using this CSS?

    Ok. I’ve managed to fix this by myself. Found my problem. Can you maybe help me alight the add to wishlist button closer to the text? And a text closer to the image?

    Plugin Support Antonio La Rocca

    (@therock130)

    Hi again

    That will be grate if you can help me with custom code.

    Please, try to add the following snippet of code at the end of functions.php file of your theme or child

    if ( ! function_exists( 'yith_wcwl_disable_atw_for_guests' ) ) {
    	function yith_wcwl_disable_atw_for_guests() {
    		return is_user_logged_in();
    	}
    	add_filter( 'yith_wcwl_show_add_to_wishlist', 'yith_wcwl_disable_atw_for_guests' );
    }

    Ok. I’ve managed to fix this by myself. Found my problem. Can you maybe help me alight the add to wishlist button closer to the text? And a text closer to the image?

    Sure! Try to add the following CSS rules at the end of Additional CSS section of your theme customizer (WP Dashbaord -> Appearance -> Customize)

    .products .product .ct-image-container {
        margin-bottom: 10px;
    }
    .products .product .ct-woo-card-actions {
        padding-top: 0;
    }
    Thread Starter kirjozzz

    (@kirjozzz)

    Thank you a lot. It all worked perfectly!!!

    Plugin Support Antonio La Rocca

    (@therock130)

    You’re welcome

    We are doing our best to improve our plugins. Our target is to develop and release the best free plugins for WooCommerce, but to achieve this we need your help. Please leave a good review to support us and help our growth

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Need help with positioning the button’ is closed to new replies.