Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1228630

    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,


    #1229585

    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

    #1229942

    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

    #1230009

    Hi Günter,

    I can confirm that this works perfectly.

    Thanks!

    #1230011

    Hi,

    Thank for the feedback. Glad we could help you.

    Enjoy the theme and feel free to come back when you need further assistance.

    Best regards,
    Günter

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Disable Cookie and Privacy Settings modal’ is closed to new replies.