Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #5879
    Henk Barreveld


    I just installed Cookie Notice. It works fine and, compared to what I used before, it is cleaner and has a smaller footprint.

    Instead of filling in the styling parameters in the backend GUI, I thought it would be simpler and more flexible to just add a few lines of settings to my theme’s style.css file. That works (of course) but I found that there were a lot of settings in the plugin’s front.css file that I had to “undo”. Disabling front.css by renaming it made doing my own styling a lot simpler – but that is of course a rather rude and temporary solution to get it out of the way.

    My question: What is the decent way, plugin update-proof for example, to get rid of front.css permanently?

    Thanks in advance for looking into this!


    The easies way would be to dequeue style using wp_dequeue_style (http://codex.wordpress.org/Function_Reference/wp_dequeue_style)

    The style name is “cookie-notice-front”

    You’d have to run this on wp_enqueue_scripts or later action, like this for example:

    function df_wp_dequeue_style() {
    	wp_dequeue_style( 'cookie-notice-front' );
    add_action( 'wp_enqueue_scripts', 'df_wp_dequeue_style', 100 );

    Hope this helps.

    Henk Barreveld

    Hello again,

    Somehow I missed you reply so far; I only just found it.

    I put the function definition and the add_action call at in my functions.php and that solved the issue.

    Perfect! Thank you very much.

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