Hello, I love the new feature Cookie Notice Info, I want to rename aviaCookieConsent to InfoCookieConsent, how can I do this?
Hey royaltask,
I can’t seem to find where aviaCookieConsent is placed? is it the class name you’re referring to?
Best regards,
Nikko
Thats the Name of the cookie.
Open the wp-content/themes/enfold/js/avia-snippet-cookieconsent.js with a editor.
Search text for “aviaCookieConsent”, it will appear two times. Rename both entrys to your requested “InfoCookieConsent”.
Safe the file.
Go to the theme settings. Change something there (i changed the text of the cookie notice info). Safe it. This will recompile with the new informations.
Done.
Hi,
Thanks for sharing @Werk32, did you try that out and did you have any luck with it @royaltask?
Best regards,
Rikard
Hi. Yes i have tried. Works fine.
After every update this is gonna be overwritten. Up to changes on this file in the future, I do not prefer to add this to my child theme. Maybe you can change the name, in order to have simple names for the cookies like CookieConsent. Is there a hook?
Hi,
Unfortunately no there is not a hook, but we can give the idea to our devvelopes.
Let us know if there is anything else we can do for you.
Best regards,
Basilis