Viewing 7 replies - 1 through 7 (of 7 total)
  • Richard

    (@richardashby)

    Hi, that may well come in a future version but I don’t have a release date planned just yet. Definitely something I’d like to offer though. Cheers.

    Thread Starter Rubén Alonso

    (@rubenalonsoes)

    Thanks Richard!
    And could you tell me at least the php or js where I could add a URL exception in the code? Thanks

    Richard

    (@richardashby)

    This is a starting point for you.

    Warning- this is a nasty hack. It isn’t the most resource efficient (e.g. because it doesn’t stop the scripts loading on that page) and I haven’t tested and will be overwritten automatically when I next update the plugin. You have been warned! ??

    cookie-law-info.php line 56:

    add_action( ‘wp_footer’, ‘cookielawinfo_inject_cli_script’ );

    If you wrap this in an ‘if’ statement, comparing the URL via the_permalink() with your URL blacklist, it will do the job. I’ll leave it to you to implement and test the fully working version.

    When I build this feature into the plugin it will work quite differently.

    Thread Starter Rubén Alonso

    (@rubenalonsoes)

    thanks Richard! ??

    Richard

    (@richardashby)

    How did you get on with this?

    Thread Starter Rubén Alonso

    (@rubenalonsoes)

    Perfect Richard!

    My landing pages begins the url with “/ir/”, then:

    if (strpos(the_permalink(),’/ir/’) !== false)
    {add_action( ‘wp_footer’, ‘cookielawinfo_inject_cli_script’ );}

    And it works fine: https://miposicionamientoweb.es/ir/como-monetizar-un-blog/

    Thanks!

    Richard

    (@richardashby)

    Nice job there ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Show the bar excepting some pages’ is closed to new replies.