• Resolved fuchsws

    (@fuchsws)


    It seems the plugin is loading JS and CSS on the user frontend which are only required in the wp-admin backend.

    In the case of jquery UI this can actually lead to layout problems for existing elements.

    If thoses assets are not required, could you restrict the loading only to the backend please?

    /wp-content/plugins/miniorange-saml-20-single-sign-on/includes/css/jquery.ui.css
    /wp-content/plugins/miniorange-saml-20-single-sign-on/includes/js/settings.js

Viewing 2 replies - 1 through 2 (of 2 total)
  • These assets are actually required for the shortcode SSO button to work properly, which can be used on the frontend. I wasn’t going to utilize this feature, so I just removed the action that enqueued the assets in my theme’s functions.php file:

    if (function_exists('plugin_settings_style_widget')) {
      remove_action('wp_enqueue_scripts', 'plugin_settings_style_widget');
    }
    
    if (function_exists('plugin_settings_script_widget')) {
      remove_action('wp_enqueue_scripts', 'plugin_settings_script_widget');
    }
    • This reply was modified 7 years, 5 months ago by jakebellacera. Reason: clarified that the code should go into the functions.php
    Plugin Author miniOrange

    (@cyberlord92)

    Hi,

    We have handled this issue in the latest version of the plugin. You can upgrade to latest version of the plugin.

    Thanks,
    miniOrange Team

    • This reply was modified 7 years ago by miniOrange.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Frontend Assets (JS/CSS)’ is closed to new replies.