Gutenberg Editor: Add stylesheet

To give the new WordPress editor the same feeling as on the frontend you can insert a new backend CSS file with a few lines of code via the functions.php in the correct themefolder.

Explanation

add_action(name_of_action,  function) – Hooks a function on to a specific action.
wp_enqueue_style(unique_name, filepath) – Registers the style if source provided and enqueues.

Create a comment

Leave a Reply

Your email address will not be published. Required fields are marked *