• Resolved stylise

    (@stylise)


    Hello. First off, thank you for the clean and easy to use plugin.

    I use Font Awesome 6 for my icon library, so we don’t need the Font Awesome 5 library that’s included with this plugin.

    Due to its large file size, I have deleted it from the includes folder, but it still gets called and throws a 404 error in the logs whenever somebody visits a page with a video that would otherwise use an icon from that now missing library.

    How can I dequeue the script that’s calling for that library?

    Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Martin Valchev

    (@martinvalchev)

    Hello, thanks for the feedback, it will help the plugin development a lot if you write a rating.

    Regarding your query, I can give you custom code to stop calling the library, but that won’t solve your problem because there are differences between version 5 and version 6, so you won’t see the icons.

    I will still save it for future versions of the library update plugin, but I can’t commit to a time when it will happen.

    Thread Starter stylise

    (@stylise)

    Hi @martinvalchev that would be great, thanks!

    I’m serving an icon from v6, so that’s already taken care of.

    Plugin Author Martin Valchev

    (@martinvalchev)

    If it’s urgent, I can make a custom version of the plugin that will work for you with version 6 if you already have version 6 on your site, so you won’t have to delete the folder if you need space. If you are interested leave an email.

    Moderator Support Moderator

    (@moderator)

    @stylise posting your contacts is against forums guidelines.
    Consider contacting commercial plugin support using their ticket system/whatever for Pro plugin version

    Thread Starter stylise

    (@stylise)

    Original post:
    @martinvalchev It's not necessarily urgent, but I do appreciate your willingness to help! [email address redacted]

    Plugin Author Martin Valchev

    (@martinvalchev)

    Hi @stylise,

    You can update to version 1.32 in this version the FontAwesome library is updated to version 6.6.0.

    As far as I understand you want it to load only your version 6 of the library, I guess you do this for on-page optimization purposes, I’ll give you some code you can add to your function.php file that will remove the library call from the plugin, and so using your call – which you should have no problems with the plugin icons.

    This is the code:

    function remove_vwg_fontawesome( $hook ) {
    if ( is_product() ) {
    wp_dequeue_style('vwg_fontawesome');
    }
    }
    add_action( 'wp_enqueue_scripts', 'remove_vwg_fontawesome', 20 );

    Please give me feedback.

    Thread Starter stylise

    (@stylise)

    @martinvalchev It’s working great, thanks a lot!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.