Help PixTheme
  • Home
  • Theme Documentation
  • Forums
  • Log In / Sign Up

Community Forums

Please use one topic for only one question.

Please use one topic for only one question.

Please use one topic for only one question.

Homepage/Forums/iRepair – WordPress Theme/load-styles.php

load-styles.php

This topic is: not resolved
Viewing 13 posts - 1 through 13 (of 13 total)
  • 1 year, 2 months ago Aqaus
    Participant

    How can I disable /wp-admin/load-styles.php in admin? It makes it very difficult to work in the editor.

    Private Content Hidden
    1 year, 2 months ago Aqaus
    Participant

    On other sites /wp-includes/css/dist/edit-post/style.min.css is loaded

    1 year, 2 months ago Support team
    Keymaster

    Hello.

    Try this https://stackoverflow.com/questions/18881710/wordpress-disabling-default-styles-load-styles-php

    1 year, 2 months ago Aqaus
    Participant

    Removes all styles

    1 year, 2 months ago Aqaus
    Participant

    I’m talking about the styles circled in red

    1 year, 2 months ago Aqaus
    Participant

    Why are woocommerce styles loaded in the editor?

    1 year, 2 months ago Support team
    Keymaster

    It’s default page editor Gutenberg. You can install plugin Classic Editor https://take.ms/kLRc0

    1 year, 2 months ago Aqaus
    Participant

    Is this /wp-content/themes/irepair/assets/css/woocommerce.css?ver=8.6.1 supposed to be loaded in the admin?

    1 year, 2 months ago Aqaus
    Participant

    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

    1 year, 2 months ago Aqaus
    Participant

    ( irepair_use_woo() && ! is_admin() )

    It’s right?

    1 year, 2 months ago Support team
    Keymaster

    Did you see these styles in admin?

    1 year, 2 months ago Aqaus
    Participant

    /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.

    1 year, 2 months ago Support team
    Keymaster

    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.

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.

Already a member? Sign In

Log In
Register Lost Password

The Best Thanks

© 2013-2024 PixTheme Studio. All Rights Reserved.