• So this plugin has a menu and several subpages. Great. Wonderful. Love that.

    However, these assets are loaded on every single admin page and it’s causing conflicts, especially where some are using tabs markup (like Contact Form 7) and then the jQuery UI script that this plugin loads messes it up.

    1. /wp-content/plugins/google-captcha/css/admin_page.css?ver=6.1.1
    2. /wp-content/plugins/google-captcha/bws_menu/css/jquery-ui-styles/1.12.1/jquery-ui.css?ver=6.1.1
    3. /wp-content/plugins/google-captcha/bws_menu/css/general_style.css?ver=2.4.2
    4. /wp-content/plugins/google-captcha/bws_menu/js/general_script.js?ver=6.1.1

    Please add a conditional to only load your assets on your plugin’s screens. Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Thank you for a report. We will fix this issue in the next plugin updates.

    Plugin Support andrewsupport

    (@andrewsupport)

    Hi, we fixed this issue in version 1.71. Please update the plugin and check the result.

    This is still not working. Looks like plugin has css written wihtout appropriate classes and it applies to other UI of the website.

    Unable to upload a screenshot to this thread.

    Thread Starter Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    I can confirm that my original issue has not been resolved in version 1.71.

    In your bws_admin_enqueue_scripts() function from lines 733-781, please wrap the interior of that function in an if-statement that checks it is your dashboard.

    The admin_enqueue_scripts action passes a string variable with the current admin page’s hook suffix. I recommend updating that function to be like:

    function bws_admin_enqueue_scripts($hook) {
        if($hook === 'toplevel_page_google-captcha') {
            // All of your function stuff here
        }
    }

    I don’t actually know what your screen’s hook is, but that’s just an example.

    Plugin Support andrewsupport

    (@andrewsupport)

    Hi,

    The issue with the loading of the CSS & JS was fixed in the last plugin version. Please check it on your websites.

    Thread Starter Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    Appears to be fine now. Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Admin CSS & JS loads on every admin page and conflicting with other screens’ is closed to new replies.