WordPress.org

Support

Support » Plugins and Hacks » Active Directory Integration » Conflicting css files – with fix

Conflicting css files – with fix

  • Hello,

    First off, thanks for a great plugin. This has made setting up an intranet site much easier for me and I really appreciate it.

    I hit an issue with conflicting css because you’re including the jquery ui styles in your main admin css file (this causes problems with plugins like Gravity forms that have their own styles).

    In case it helps at all I restricted the css to just show on your settings page by doing the following:

    In ad-integration.php on lines 350 I changed your code to:

    add_action('admin_enqueue_scripts', array(&$this, 'load_styles'));

    And then I updated the load_styles function on lines 418 to 424 to:

    public function load_styles($hook) {
     //Only load script on settings page
     if('settings_page_active-directory-integration' !== $hook ) { return;}
    
     wp_register_style('adintegration',plugins_url('css/adintegration.css', __FILE__ )  ,false, '1.7.1', 'screen');
      wp_enqueue_style('adintegration');
    }

    It would be cool if this could be added in to the next update.

    Thanks again,
    James

    http://wordpress.org/extend/plugins/active-directory-integration/

  • The topic ‘Conflicting css files – with fix’ is closed to new replies.
Skip to toolbar