Support » Plugin: Genesis Simple Breadcrumbs » CSS conflict with other plugins

  • Hello,
    thanks for this useful plugin. However I noticed that the admin css of the plugin is loaded on every admin page, not just the plugin’s own settings page, and this causes CSS conflicts with other plugins in the admin. Would it be possible to load it conditionally only in the plugin settings page? I was able to workaround this problem using custom code and hooks, but it would be nice if the behavior was native.
    By the way, I’d suggest you to insert CSS/JS using the admin_enqueue_scripts hook (see Codex documentation and examples) instead of admin_head.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Nick,

    I would like to know if there will be an update for this plugin in the near future as we have been alerted that this issue is affecting our CSS & JavaScript Toolbox plugin.


    Thread Starter Marco Chiesi


    By the way, if anyone is interested on my fix, here’s the snippet I used to fix it (to be added in theme’s functions.php or in a custom plugin):

    add_action('admin_init', 'fix_gsb_css');
    function fix_gsb_css() {
    	global $pagenow;
    	if($pagenow != "admin.php" || !isset($_GET['page']) || $_GET['page'] != "gsb-settings") {
    		remove_action( 'admin_head', 'ntg_styles_inline' );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS conflict with other plugins’ is closed to new replies.