• Hello everybody !

    “Juan Coronel” i would like to thank you for your previous answer.

    Now, I’m experiencing the same issue has this person here -> Support Question.

    I changed my YITH settingss from “View Wishlist” to “Remove from list” and that broke the code you gave me :

    /* Make ATW button Red when activated. Doesn’t work since the YITH settings switch*/
    .image-tools .wishlist-button.wishlist-added
    { background-color: #b20000!important;/*red*/
    border-color: #b20000!important;/*red*/
    color: #fff!important;/*white*/ }

    Can you help me on that ?

    Thank you very much !

    Best regards.

    P.S: Further down the lane, I will try to see how to change the texts and colors of the pop-ups that show up when something is added, removed, etc. but this issue has a lower priority for now ??

    • This topic was modified 2 years, 1 month ago by sushiman1787.
    • This topic was modified 2 years, 1 month ago by sushiman1787.

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

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

    (@juaancmendez)

    Hello there,
    my pleasure ??

    All style changes are due to Flatsome’s integration with our plugin.

    In order to achieve what you need, add the following code in the functions.php file of your active child theme:

    if ( ! function_exists( 'yith_wcwl_custom_styles' ) ) {
        function yith_wcwl_custom_styles() {
            $jquery = 'jQuery( function($) {
                $( ".yith-wcwl-add-to-wishlist.exists" ).each( function() {
                    let container = jQuery( this ).closest( ".image-tools" ).find( ".wishlist-button" );
                    container.css( {"color":"white","background":"#cf2e2e"} );
                })
            });';
            wp_add_inline_script( 'jquery-yith-wcwl', $jquery );
            wp_add_inline_script( 'jquery-yith-wcwl-user', $jquery );
        }
        add_action( 'wp_enqueue_scripts', 'yith_wcwl_custom_styles', 99 );
    }

    Could you please check it and tell us if it works well for you?

    We will be attentive to your response.

    Best regards.

    Thread Starter sushiman1787

    (@sushiman1787)

    Hello Juan ??

    Thank you for the answer.

    I tried your solution and it ALMOST worked.

    Unfortunately, the “ATW Heart button” only “updates” after a page refresh (F5), i have no idea why.

    Any possible solution ?

    Thank you.

    Best regards !

    Thread Starter sushiman1787

    (@sushiman1787)

    Hello again team.

    Any solutions @juaancmendez ?

    Thank you ??

    Thread Starter sushiman1787

    (@sushiman1787)

    Hello.

    Anyone can help me?
    I tried many solutions and none worked. I even checked with my theme developer, but he couldn’t help me.

    Can anyone point me towards the correct way to solve my issue please ?

    Thank you.

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    Unfortunately, the problem is due to the type of customization that Flatsome integrates into our plugin, since the HTML of that heart is the theme’s own. We recommend contacting their support for this.

    We will be attentive to any news.

    Best regards.

    Thread Starter sushiman1787

    (@sushiman1787)

    Ok.

    Thank you for the answer @juaancmendez.

    Best regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘“ATW Heart button” stopped staying red after a product was added.’ is closed to new replies.