Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1089396
Fontawesome not working when YITH WooCommerce Wishlist is disabled
Closed

Comments

  •  3
    MobileGear started the conversation

    I discovered something strange today. I do not want to use the wishlist item in woocommerce so I disabled the plugin 'YITH WooCommerce Wishlist' that comes with your theme. 

    Disabling this plugin causes Fontawesome not to work anymore on some places (see attached screenshots). Is there a way to fix this?

  •  7,121
    Oliver replied

    HI!

    pls. share the wp-admin access, we'll check.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •   MobileGear replied privately
  •  7,121
    Oliver replied

    Did you added any changes in the theme? 

    In the shortcode icon with text must be fontaversome pack and I don't see specified font size for the icon in the top area. 

    if you wish to use FA pack without the shortcode you need to add next code to the functions.php of the child theme/

    wp_register_style('icons-fontawesome', get_template_directory_uri() . '/css/icons-fontawesome.css');
    wp_enqueue_style('icons-fontawesome');
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  3
    MobileGear replied

    I did not change anything inside the theme itself. I only de-activated the plugin called 'YITH WooCommerce Wishlist'. 

    I just activated the plugin again and as you can see, all the Fontawesome icons are working now without changing any code. That's the strange thing. The problem is that I don't want the wishlist button.

    I will add the given code to the functions.php later this week to see if it fixes the issue.

  •  7,121
    Oliver replied

    You can hide wishlist button with following css:

    .products .yith-wcwl-add-to-wishlist {
        display: none;
    }

     

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  3
    MobileGear replied

    Yes, I've seen that. But it's a bit strange to have a plugin for a wishlist button and then having to hide it with css :D

    I'll give the code for the function.php a try later this week.

    Thanks!

  •  3
    MobileGear replied

    I've added the given code to the functions.php in the child theme, but this doesn't solve the problem. I'll use the css snippet for now and that seems to work. 

    If you got the time, I would like to see if theres any other way to disable the plugin and to keep making use of fontawesome.

    Cheers.

  •  7,121
    Oliver replied

    HI!

    As I see you use custom icons with fa class, we don't have this class in the gem theme.

    I see that css code of the icons  of the top area are in the  

    https://mobile-gear.nl/wp-content/plugins/yith-woocommerce-wishlist/assets/css/font-awesome.min.css?ver=4.3.0

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  3
    MobileGear replied

    Aaaah that makes sense! The Font Awesome icons are in the theme, but not the classes.

    I will add the Font Awesome css manually to the child theme. Problem solved, thanks!

  •  7,121
    Oliver replied

    You are welcome!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver