• Ciao. Il plugin, dopo l’ultimo aggiornamento è diventato fantastico. Facile da utilizzare e soprattutto blocca sia script che iframe (cosa che non fanno tutti). A mio avviso manca solo un passo per essere perfetto. Il plugin infatti può bloccare tutti i Js contemporaneamente o nessuno, a seconda della mia scelta. Potrei avere però l’esigenza di bloccare gli script dei banner amazon fino a quando non si acconsente all’utilizzo dei cookie, ma allo stesso tempo vorrei che una slider che funziona grazie ai Js (tipo slider revolution ad esempio il cui script risiede in https://dominio.tld/wp-content/plugins/revslider/public/assets/js/jquery.themepunch.tools.min.js) potesse essere visualizzata anche prima del consenso. Quindi, se si riuscisse ad inserire un campo dove scrivere gli script da non bloccare, quando l’opzione blocca tutto è attivata, sarebbe il massimo. E’ possibile?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marco Milesi

    (@milmor)

    Ciao Paolo,
    grazie mille!

    Nelle istruzioni puoi trovare alcune parole chiave da usare per escludere particolari script, ma al momento richiedono una modifica diretta da codice dove questi script vengono richiamati.

    Hi,
    in our faqs you can find keywords and shortcodes to exclude particular scripts. However, this must be done by editing php/js code.

    Hi Marco @milmor
    Thank you very much for this nice plugin. I was working to make my theme compatible with your plugin.
    I was also interested in excluding specific scripts. I think this is something very important. You may need a specific script for the design and usually, this kind of scripts don’t write any cookies. I searched in the plugin FAQ but haven’t found anything.
    Can you please tell us how to exclude a specific script? Both for an inline script and an external script please, if possible.
    Many thanks in advance.

    I have found it

    I’ve tried to add the string eucookielaw_exclude both as comment and as class, but my inline script is not executed.
    I’ve tried the following:

    <script class=”eucookielaw_exclude”>
    ……

    <script>
    /*eucookielaw_exclude*/
    …..

    <script>
    <!– eucookielaw_exclude –>
    …..

    <!– eucookielaw_exclude –>
    <script>
    …….

    none of them works. Can you please write an example?

    ok, I’m looking now at your plugin code. It looks this string works only if the script is written in the post content. It will not work if written out of the post content. Have you thought a solution for scripts out of the post content? E.g. for scripts written in the template files or scripts loaded with wp_enqueue_script?
    Sorry for disturbing you, but I think this is important to have themes that are compatible with your plugin.
    Thank you very much in advance.

    <script class=”eucookielaw_exclude”> works. Sorry, it was me who was confusing a script with another one.

    • This reply was modified 5 years, 5 months ago by Jose.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Miglioramenti possibili’ is closed to new replies.