How to remove editor-style.css?

Posted in: Newspaper
Post count: 7

Is there a way I can prevent this from running via a child theme? I don’t want the editor-style.css file to load.

add_action( 'after_setup_theme', 'my_theme_add_editor_styles' );
function my_theme_add_editor_styles() {
if (TD_DEPLOY_MODE == 'dev') {
// we need the full url here due to a WP strange s*it with ?queries
add_editor_style(get_stylesheet_directory_uri() . '/td_less_style.css.php?part=editor-style');
} else {
add_editor_style(); // add the default style
}
}

Post count: 23312

Hello ChrisB,

Sorry, the theme does not have any such an option for this! This task involves custom work and we cannot provide support for this because does not theme related.

Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.