Hi Enfold team,
I’m trying to remove the Cookie and Privacy Settings modal from the HTML code.
I disabled as many options as I can in the theme config and tried to remove it with filters in function.php child theme, but the message is still appearing in the HTML code.
I noticed that the Cookie modal it’s loaded in the file includes/helper-privacy.php in the lines 1748 – 1749.
There is any way to remove this modal entirely without modifying helper-privacy.php directly?
Btw, I can’t override helper-privacy.php in the child theme due to the parent load this file like “require_once helper-privacy.php;” instead of “require_once(get_theme_file_path(‘includes/helper-privacy.php’ ));”
Thanks,
Hey vgsystems,
Thank you for using Enfold.
I added this request to our dev repo. I will add an option to “Display Modal Popup Actions” to remove the HTML completly.
Please check the changelog – but I hope to get it ready for the next update.
Best regards,
Günter
Hi,
To functions.php of your child theme add the following:
add_theme_support( 'avia_supress_cookie_modal_html_creation' );
This should work since 4.6.4.
Best regards,
Günter
Hi Günter,
I can confirm that this works perfectly.
Thanks!