Skip to content

Commit

Permalink
feat(RemoveEditor): dequeue Gutenberg styles
Browse files Browse the repository at this point in the history
* Removes Gutenberg default styles on front-end #261

* refactor(RemoveEditor): remove type hints

Co-authored-by: Dominik Tränklein <dominik@bleech.de>
  • Loading branch information
hanifbirgani and domtra authored Aug 12, 2020
1 parent 04299f9 commit 3321873
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions inc/removeEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@
remove_post_type_support('page', 'editor');
remove_post_type_support('post', 'editor');
});

/**
* Removes Gutenberg default styles on front-end
*/
add_action('wp_print_styles', function () {
wp_dequeue_style('wp-block-library');
wp_dequeue_style('wp-block-library-theme');
});

0 comments on commit 3321873

Please # to comment.