WordPress.org

Support

Support » Plugins and Hacks » Cuando pulso "cerrar", la barra sigue apareciendo

Cuando pulso "cerrar", la barra sigue apareciendo

Viewing 3 replies - 1 through 3 (of 3 total)
  • ivancasasemepre
    Member

    @ivancasasemepre

    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();
    
            });
    esmi
    Forum Moderator

    @esmi

    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.

    Art Project Group
    Participant

    @artprojectgroup

    Thanks a lot for this hack ivancasasemepre. Works fine!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cuando pulso "cerrar", la barra sigue apareciendo’ is closed to new replies.