Light Weight Cookie Popup


Try it out on your free dummy site: Click here =>

Light Weight Cookie Popup where you can inform to users that your site uses cookies and to comply with the EU cookie law regulations.


  • Message (optional)
  • Cookie Expiry (optional) : Default – 1 day
  • Country (Display within selected countries) (optional) : Default – All Countries
  • Position: Top/Bottom (optional) : Default – Bottom
  • Popup Padding (optional) : Default – 15px
  • Popup Background Color (optional) : Gray
  • Popup Text Color (optional) : Default – Black
  • Popup Font Size (optional) : Default – 13px
  • Hide Close Button (optional) : Default – Show
  • Close Button Text (optional) : Default – x
  • Hide Accept Button (optional) : Default – Show
  • Accept Button Text (optional) : Default – Ok
  • Accept Button Background Color (optional) : Default – inherited from button tag
  • Accept Button Text Color (optional) : Default – inherited from button tag
  • Accept Button Class (optional)
  • Hide Read More Link (optional) : Default – Show
  • Read More Color (optional) : Default – inherited from theme style
  • Read More Text (optional) : Default – Read more…
  • Read More Link (optional) : Default – #
  • Reamore Link Target (optional) : Default – _self
  • Reamore Link class (optional)
  • Multi language compatible
  • .pot file included for translations

Filters and Functions

The code would be placed in your theme functions.php file or a custom plugin.

Would you like to do something if cookie accepted

if ( function_exists('LWCP_cookie_accepted') && LWCP_cookie_accepted() ) {
    // Write your code here

This example for the override options by filtering ‚lwcp_options_args‘ filter.

function my_popup_options_args_filter( $options ) {
    // do something with $options
    return $options;
add_filter( 'lwcp_options_args', 'my_popup_options_args_filter', 10, 1 );

This example for the override output by filtering ‚lwcp_cookie_output‘ filter.

function my_popup_output_filter( $output, $options ) {
    // do something with $output and $options
    return $output;
add_filter( 'lwcp_cookie_output', 'my_popup_output_filter', 10, 2 );

More Information


Did you enjoy this plugin? Please donate to support ongoing development. Your contribution would be greatly appreciated.


  • Popup options


  1. Download and extract the zip archive
  2. Upload ‚light-weight-cookie-popup‘ folder to ‚/wp-content/plugins/‘
  3. Activate the plugin through the ‚Plugins‘ menu in WordPress
  4. Manage popup settings through the ‚Light Weight Cookie Popup‘ under the ‚Settings‘ menu and configure the options as desired


Detail about Third Party API for country detection

Country is optional field and by default display popup on all countries and not access the Third Party API.
If you set countries then only it will access the Third Party API to get country name from IP Address.
The API called ‚‘ and Free usage of API is limited to 1,000 API requests per day.
Please find more inforamation about API here –


There are no reviews for this plugin.

Mitwirkende & Entwickler

„Light Weight Cookie Popup“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:




  • First release.