• Resolved Felix

    (@mdordaa)


    Some updates ago, the font awesome heart-o icon I used for my wishlist button stopped showing in some places. It is showing correctly on the product list pages but not on the single product pages. I investigated the issue yesterday and have observed that you’re using the old font awesome icon format “fa fa-heart-o” instead of the new “far fa-heart” format. I tested this by changing the class through the google chrome inspector. I’ve notice that the font awesome classes have been partially code in this file assests/js/admin/yith-wcwl-icons.json.

    Regards.

    • This topic was modified 2 years, 10 months ago by Felix.

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

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

    (@juaancmendez)

    Hi Felix,
    we hope you’re doing well!

    We was checking your site, and we see that you don’t have any js/css files of our plugin loaded. Try adding this code to your active theme’s functions.php file and let us know if it fixes the problem please:

    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 );	
    	}
    
    }

    We will be attentive to your response.

    Best regards.

    Thread Starter Felix

    (@mdordaa)

    The code has resolved the problem, thanks.
    Regards.

    Hello there,

    Perfect, I’m glad everything is working fine! ??

    Now if you agree I will proceed to mark the topic as resolved but do not hesitate to contact us again if you need our help.

    Have a nice day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Font awesome -o icons not showing’ is closed to new replies.