This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Remove Plugin CSS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #47401
    chrigifrickchrigifrick
    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 MarcinkoErnest 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?

    #47450
    chrigifrickchrigifrick
    Participant

    Hello

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

    Best regards,
    Chris

    #47459
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Great 🙂

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