• Resolved minimamente

    (@minimamente)


    I think a specific function should be created to load the CSS styles in wp-admin.

    In your plugin, the function wcusage_custom_admin_styles is called with add_action('admin_head', 'wcusage_custom_admin_styles'); but I think it is appropriate to load the styles only in your options page. What I mean is this:

    https://gist.github.com/miniMAC/270e62ebf913f1c97c93d052f5732326

    This avoids the problem of your styles affecting the serial interface of WordPress or WooCommerce, see screenshots of the problem.

    https://cln.sh/Vh3j6ghJ

    I’am one of the developers of ACF 😉

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Problem load all admin styles’ is closed to new replies.