Remove Plugin CSS

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #47401
    chrigifrick
    chrigifrick
    Participant

    Hello

    We are trying to remove the CSS of the plugin, but unfortunately we can’t find a solution.
    We have tried different settings in the backend of the plugin, such as changing the “Style (CSS) loading method” setting to “file”, but the CSS is always loaded inline in the head.
    We also tried to use the filter from here: https://knowledgebase.ajaxsearchpro.com/hooks/filters/css-and-js/asp_load_css but that didn’t work either.

    Can you please help us with this? 🙂

    Kind regards,
    Chris

    #47408
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Chris,

    The documentation you linked should work, something like this:

    add_filter( 'asp_load_css', 'asp_stop_load_css', 10, 1 );
    function asp_stop_load_css( $stop ) {
        return true;
    }

    Have you used the custom code in the function.php file in the theme directory or somewhere else?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #47450
    chrigifrick
    chrigifrick
    Participant

    Hello

    That worked perfectly, thank you! 🙂
    We customized the function incorrectly, but with your solution it works 🙂

    Best regards,
    Chris

    #47459
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Great 🙂

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.