Support » Plugin: OSM Cookie Consent » Add a condition for script admin-side only on cookie content page

  • Hi,

    Can you just add these lines to script.js :
    if ($(“#osm-cookie-consent-tabs”).length == 0)
    return;

    To the beginning of the plugin inside the ready wrapper ?

    Executing it in every page of the admin side creates interferences with other plugins since classes are not prefixed.

    Thank you for your plugin, it’s a great one.

    https://wordpress.org/plugins/osm-cookie-consent/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add a condition for script admin-side only on cookie content page’ is closed to new replies.