This topic is: not resolved
Viewing 13 posts - 1 through 13 (of 13 total)
Viewing 13 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic.
Please use one topic for only one question.
Please use one topic for only one question.
Please use one topic for only one question.
How can I disable /wp-admin/load-styles.php in admin? It makes it very difficult to work in the editor.
On other sites /wp-includes/css/dist/edit-post/style.min.css is loaded
It’s default page editor Gutenberg. You can install plugin Classic Editor https://take.ms/kLRc0
Is this /wp-content/themes/irepair/assets/css/woocommerce.css?ver=8.6.1 supposed to be loaded in the admin?
if ( irepair_use_woo() ) {
add_filter( ‘woocommerce_enqueue_styles’, ‘irepair_load_woo_styles’ );
function irepair_load_woo_styles( $styles ) {
if ( isset( $styles[‘woocommerce-layout’] ) && isset( $styles[‘woocommerce-layout’][‘src’] ) ) {
$styles[‘woocommerce-layout’][‘src’] = get_template_directory_uri() . ‘/assets/css/woocommerce-layout.css’;
}
if ( isset( $styles[‘woocommerce-general’] ) && isset( $styles[‘woocommerce-general’][‘src’] ) ) {
$styles[‘woocommerce-general’][‘src’] = get_template_directory_uri() . ‘/assets/css/woocommerce.css’;
}
return $styles;
}
}
styles-scripts.php is only needed for the frontend
/assets/css/woocommerce.css this was loaded in the editor. Screenshot above.
I changed the styles-scripts.php code and now it is only in the frontend.
Yes, they changed the operation of the woocommerce_enqueue_style filter and styles began to load in the admin area. We will add this to the feature update.
You must be logged in to reply to this topic.