• Resolved stevieboy23

    (@stevieboy23)


    Hi, been using Understrap for a couple of years now. Just updated to Version 1.0.0. I have my own editor styles css, what’s the best way to disable your new custom-editor-style css? For the moment I have simply renamed the css files (and maps) so they do not load, but is there a cleaner way of doing it? Keep up the good work – Best Wishes!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Our first note is that we recommend using a child theme for any modifications.

    I believe the quickest way is to call remove_theme_support( 'editor-styles' ) in your child theme.

    Otherwise, we enqueue our block-editor styles in inc/block-editor.php in a function called understrap_block_editor_setup().

    In your child theme, you can simply declare your own empty function named understrap_block_editor_setup() and it will override all of our block editor setup.

    Thread Starter stevieboy23

    (@stevieboy23)

    Thanks very much – also just noticed, I have my own colour pallete set up which is being cancelled out by the new bootstrap colour pallete, how can I disable the Bootstrap colours?

    We add the palette in understrap_block_editor_setup() so just declaring the function in your child theme should stop that as well.

    function understrap_block_editor_setup(){} should be fine.

    Thread Starter stevieboy23

    (@stevieboy23)

    Okay thanks got that sorted now Best Wishes!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to disable custom-editor-style?’ is closed to new replies.