WordPress.org

Ready to get started?Download WordPress

Forums

Cookie Warning
exclude cookie warning on specific pages (4 posts)

  1. clickmarketing
    Member
    Posted 1 year ago #

    Is it possible to exclude the cookie warning popup message from showing on specific pages?

    Thanks!

    http://wordpress.org/extend/plugins/cookie-warning/

  2. Dourou
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Clickmarketing,

    You can achieve that with a bit programming.

    If you go to line 129 of the file 'cookiewarning.js' you'll find a function that goes:

    if(are_cookies_enabled()){
    	    checkCookie();
    	}

    you can add a condition in there to prevent checkCookie() to launch on a set of pages.

    Or if you prefer doing it in PHP, you can edit cookie-warning.php (line 53) to prevent loading the js file of the plugin on a set of pages.

  3. clickmarketing
    Member
    Posted 1 year ago #

    Can I request this as a new feature on your next update? Thanks!

    I am just concerned if we modify the plugin we might get maintenance issues in the future.

  4. clickmarketing
    Member
    Posted 1 year ago #

    Please reply on my previous question.

    I have another question. Our website is a multilingual website (uses wpml plugin) so we have .de, .be, .com, and .nl domains in 1 website. How do we make the cookie warning popup not active when users go to .de, .be, .com or not active when user is NOT within ip range netherlands?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.