• anitakaczmarek

    (@anitakaczmarek)


    Hi, on my website heart doesn’t change to black if product is added to WISHLIST. How can I change that?

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

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

    (@juaancmendez)

    Hi Anita,
    We hope you’re doing well!

    In order to fix this, add this code in the functions.php of your active theme:

    if ( defined( 'YITH_WCWL' )) {
    	if( ! function_exists( 'yith_wcwl_enqueue_back_required_assets' ) ) {
    		function yith_wcwl_enqueue_back_required_assets() {
    			$suffix  = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    			$version = defined( 'WC_VERSION' ) ? WC_VERSION : '';
    
    			wp_enqueue_style( 'woocommerce_prettyPhoto_css', plugins_url( 'assets/css/prettyPhoto.css', WC_PLUGIN_FILE ), array(), $version );
    			wp_enqueue_script( 'prettyPhoto', plugins_url( 'assets/js/prettyPhoto/jquery.prettyPhoto' . $suffix . '.js', WC_PLUGIN_FILE ), array( 'jquery' ), '3.1.6' );
    			wp_enqueue_script( 'prettyPhoto-init', plugins_url( 'assets/js/prettyPhoto/jquery.prettyPhoto.init' . $suffix . '.js', WC_PLUGIN_FILE ), array( 'jquery' ), $version );
    
    			wp_enqueue_style( 'yith-wcwl-main', YITH_WCWL_URL . 'assets/css/style.css', array( 'jquery-selectBox' ) );
    		}
        	add_action( 'wp_enqueue_scripts', 'yith_wcwl_enqueue_back_required_assets', 100 );
    	}
    
    	if ( ! function_exists( 'ywfav_add_fontawesome' ) ) {
    		function ywfav_add_fontawesome() {
            	wp_enqueue_style( 'fontawsome', 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
        	}	
    		add_action( 'wp_enqueue_scripts', 'ywfav_add_fontawesome', 99 );	
    	}
    
    }

    Could you try it and tell us if it has worked well for you?

    We will be attentive to your response.

    Have a nice day!

    Thread Starter anitakaczmarek

    (@anitakaczmarek)

    Hi, unfortunately I have this message on mt theme editor

    Theme editor is disabled due to DISALLOW_FILE_EDIT constant is set to true in wp-config.php

    Can I do this in other way?

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hi Anita,

    Could you set that constant to false? The code we provide is to enqueue CSS files of our plugin that for some reason you don’t have (probably some plugin or your theme has removed them from the queue).

    Generally, the config.php file can be found in public_html/wp-config.php .

    Let us know any news, please.

    Have a nice day!

    Thread Starter anitakaczmarek

    (@anitakaczmarek)

    Hi, unfortunately I dont know how to do that. It is to complicated for me. Do you have any easier way to fix it?

    Héctor.G

    (@hectorgc)

    Hi there,

    Unfornutaly there is no easy way to do this.

    You need to edit your site files, and if you don’t know how to do that, you could ask your hosting to give you and FTP access so you could connect to the files and edit them.

    As my colleague Juan said, you need to change the wp-config.php file in order to change that constant and then be able to paste the code in the functions.php of your active theme.

    Have a nice day!

    Thread Starter anitakaczmarek

    (@anitakaczmarek)

    Will contact with them and I’ll keep you posted!

    Thanks:)

    Thread Starter anitakaczmarek

    (@anitakaczmarek)

    I asked my hosting to give me an access and I code is already in the functions.php, Unfortunately doesn’t work,

    I can send you a screenshot

    What we can do else?

    Héctor.G

    (@hectorgc)

    Hello there,

    I have been checking directly on your product page and see that you have our icon hidden and there is another one displayed.

    Did you do that on purpose? Or was automatically added by the theme?
    Could you please test with a default WordPress theme only to see if the icon is correctly displayed?

    Let us know, please.

    Thread Starter anitakaczmarek

    (@anitakaczmarek)

    Hi, thank you for quick respond!

    One icon is hidden because I had duplicate heart add to wishlist. We did this on purpose.

    “Could you please test with a default WordPress theme only to see if the icon is correctly displayed?” – How to do that?

    Thanks!

    Anita

    Héctor.G

    (@hectorgc)

    Hi there,

    Then, if you had 2 icons displayed is because your template is adding one, probably you had hidden ours and display the one that belongs to the template.

    Could you hide the current one and display the other?

    Let us know.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘My heart doesn’t change to black if product is added to wishlist’ is closed to new replies.