• Resolved mw815371

    (@mw815371)


    I have the plugin CookieYes | GDPR Cookie Consent installed on my website. I excluded the plugin URL from caching, as well as JavaScript and CSS from being minified.
    Still, it seems the caching and minification is still done for the plugin, which causes in the Cookie Pop-Up for the Cookie Setting the Accordion Items not to stay open, when clicked on them. They just collapse immediately after clicking on them. This way, no visitor is able to read any of the provided information. Furthermore, the link to the Privacy Policy is also not working.

    Any ideas what I could do about this?

    Thanks for your help.

    The page I need help with: [log in to see the link]

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

    Have you have cleared the cache and reset the minified files after saving the exclusions? You can do so by clicking the WP-Optimize >> Minify >> Minify status >> Reset the minified files button as per this screen shot.

    Thread Starter mw815371

    (@mw815371)

    I did so several times. No impact. Also, I deleted the minified JavaScript and CSS files from the Advanced tab. If I reload the page after the browser cache had been cleaned, the cookie banner does not work at all.
    Purging the cache again rebuilds the minified files again, even though this should not be done as they are in the exclude list.
    BTW, I test the page in a different browser to avoid conflicts with the wp admin area.

    Hello,

    Please could you confirm the paths you are using for all of the exclusions?

    Thread Starter mw815371

    (@mw815371)

    These are the exclusions I use for the Cookie plugin:

    Excluded URLs (Cache Advanced Settings tab):
    /wp-content/plugins/cookie-law-info/*

    Excluded Javascript (Minify Javascript tab):
    /wp-includes/js/jquery/jquery.js
    /wp-content/plugins/cookie-law-info/public/js/cookie-law-info-public.js

    Excluded CSS (Minify CSS tab):
    /wp-content/plugins/cookie-law-info/public/css/cookie-law-info-gdpr.css
    /wp-content/plugins/cookie-law-info/public/css/cookie-law-info-public.css
    /wp-content/plugins/cookie-law-info/public/css/cookie-law-info-table.css


    Thanks – please could you go to Minify >> Advanced >> Minify cache information and then click on Show information next to these two files?

    wpo-minify-header-jquerycookie-law-infocookie-law-info-ccpa3.7.13.1.83.1.8.min.js

    wpo-minify-header-jquerycookie-law-info3.7.13.1.8.min.js

    The function is being called twice for some reason for each click event.

    Thread Starter mw815371

    (@mw815371)

    The first file shows this information:

    /wp-content/plugins/cookie-law-info/legacy/public/js/cookie-law-info-public.js
    /wp-content/plugins/cookie-law-info/legacy/admin/modules/ccpa/assets/js/cookie-law-info-ccpa.js 

    Excluding both did the job already. The Cookie Popup accordion item now stay open. Also, the Read more link works as well. Tested in different browsers. All works!

    The second file was referring to the following file, which I exclude now as well.

    /wp-content/plugins/cookie-law-info/legacy/public/js/cookie-law-info-public.js

    Thanks for your help! Next time I have an issue, I will first look into the information provided and check what will happen if I exclude the file in question.

    All the Best,
    Stephan

    No problem, I’m glad it’s working.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Exclude does not work (URLs as well as javascript & css)’ is closed to new replies.