WordPress.org

Forums

CookiesControl (Spanish legislation)
Cuando pulso "cerrar", la barra sigue apareciendo (4 posts)

  1. naval0n
    Member
    Posted 1 year ago #

    Muy buen plugin, gracias por tu aporte. No obstante, tengo un pequeño problemilla. No siempre ocurre, pero hay veces que pulso sobre el botón de cerrar y la barra sigue apareciendo, me ocurre en varios sitios. Tienes idea de por qué?

    Saludos!

    http://wordpress.org/plugins/cookiescontrol-spanish-rules/

  2. ivancasasemepre
    Member
    Posted 1 year ago #

    Yo creo que es por culpa del código jQuery, hay que reemplazar el $ por jQuery.

    if( document.cookie.indexOf("<?php echo $choc_chip_cookie_name;?>") ===-1 ){
                jQuery("#cookie-allow").show();
                //Expiration of cookie. Expires in a session.
                // We set this cookie since configuration cookies are allowed without explicit confirmation
                SetCookie('<?php echo $choc_chip_cookie_name;?>','<?php echo $choc_chip_cookie_name;?>')
            }
            jQuery("#removecookie").click(function () {
              jQuery("#cookie-allow").remove();
    
            });
  3. esmi
    Forum Moderator
    Posted 1 year ago #

    I'm sorry but these are English language forums, so please use English or provide an English translation. Alternatively, use a WP support forum in your language.

  4. Art Project Group
    Member
    Posted 1 year ago #

    Thanks a lot for this hack ivancasasemepre. Works fine!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CookiesControl (Spanish legislation)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.