When i close cookies using close button, popup keeps appearing

This topic has 3 replies, 3 voices, and was last updated 11 months ago ago by Andrew Mitchell

  • Avatar: ljimenez
    ljimenez
    Participant
    January 29, 2024 at 21:58

    when i close cookies using close button, popup keeps appearing, how i remove that behavior?

    i dont want to use the submit button, instead just the close button

    thank you

    2 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    January 30, 2024 at 06:03

    Dear Mr. Jimenez,

    We hope this message finds you well.

    We kindly request that you insert the following script into the functions.php file located within your child theme directory. This code is intended to enhance the functionality of your website:

    
    add_action('wp_footer', 'n2t_wp_footer');
    function n2t_wp_footer(){
    	?>
    	<script>
            jQuery( function($){
                $(document).on('click', '.et-cookies-popup-wrapper .close', function (){
                    etConfig.et_global.is_customize_preview || etTheme.setCookie("etheme_cookies", "false", etConfig.etCookies.cache_time), e.addClass("removing"), setTimeout(function() {
                        e.remove()
                    }, 700)
                });
            });
    	</script>
    	<?php
    }
    

    Please ensure that the code is implemented correctly to avoid any potential issues. Should you require any assistance or have any questions regarding this process, please do not hesitate to reach out.

    Thank you for your attention to this matter.

    Best Regards,
    The 8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    January 30, 2024 at 14:00

    Dear ljimenez,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘when i close cookies using close button, popup keeps appearing’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.