Title: Plugin causing conflicts on admin side
Last modified: July 26, 2020

---

# Plugin causing conflicts on admin side

 *  [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/plugin-causing-conflicts-on-admin-side/)
 * Hi team.
 * Your plugin is causing issues on admin area. The problem is that you load `admin.
   min.js` file on every page of WP Dashboard. Since the code attaches `onclick`
   event to EVERY `a` tag on the page, this causes random JS errors. This also breaks
   settings page of one of our plugins.
 * Can you change the code so your `admin.min.js` only loads when really needed?
   E.g. on settings page of your plugin only.
 * [https://plugins.trac.wordpress.org/browser/clicky/trunk/admin/class-clicky-admin-page.php#L21](https://plugins.trac.wordpress.org/browser/clicky/trunk/admin/class-clicky-admin-page.php#L21)
   
   [https://plugins.trac.wordpress.org/browser/clicky/trunk/admin/class-clicky-admin-page.php#L38](https://plugins.trac.wordpress.org/browser/clicky/trunk/admin/class-clicky-admin-page.php#L38)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/plugin-causing-conflicts-on-admin-side/#post-13171739)
 * Cannot edit my initial post, but my claims are a bit misleading.
 * > Since the code attaches `onclick` event to EVERY `a` tag on the page, this 
   > causes random JS errors.
 * The code _is not_ attaching `onclick` event to every `a` tag on the page. The
   issue is caused by URL hash navigation code instead. I’ve provided more details
   [in this issue](https://github.com/Yoast/clicky/issues/95).
 * My apologies for misleading claims.
    -  This reply was modified 5 years, 10 months ago by [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/).

Viewing 1 replies (of 1 total)

The topic ‘Plugin causing conflicts on admin side’ is closed to new replies.

 * ![](https://ps.w.org/clicky/assets/icon.svg?rev=2107627)
 * [Clicky by Yoast](https://wordpress.org/plugins/clicky/)
 * [Support Threads](https://wordpress.org/support/plugin/clicky/)
 * [Active Topics](https://wordpress.org/support/plugin/clicky/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/clicky/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/clicky/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/plugin-causing-conflicts-on-admin-side/#post-13171739)
 * Status: not resolved