• Hi! can someone help me with this?
    This plugin is working in all features except with “cookie notice” plugin by dFactory. You can see that cookie notice remain the same when you switch language here https://simplyceram.triplodesign.com/

    I’ve already changed it at sublanguage-> translate options -> cookie_notice_option and nothing has changed.

    Wait for your feedback soon.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    Cookie Notice plugin by dFactory doesn’t work with Sublanguage because unfortunately it loads his options way too soon. To fix this, we have to reload options at the time they are actually used. You can just add the following in your theme’s function.php file:

    
    add_filter('cn_cookie_notice_args', function($notice_options) {
      $fresh_notice_options = get_option('cookie_notice_options');
      return array_merge($notice_options, $fresh_notice_options);
    });
    
    Thread Starter claudia.mvoliveira

    (@claudiamvoliveira)

    Hi maxime,

    Thank you so much for your reply. This code works perfectly!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translate cookies’ is closed to new replies.