Archived topic
Frontend Styling for Gutenberg
3 replies · Started by Bogdan on November 22, 2018
Dear GeneratePress Team,
I am really thrilled about the latest 2.2 release, however regarding the Frontend Styling for Gutenberg I have two things to bring to you attention:
1) The style.css in the generatepress_child folder is not evaluated which makes Frontend Styling depending of the amount of CSS customization quite incomplete.
2) I would like to be able to disable Frontend Styling for Gutenberg somewhere.
Thank you,
Bogdan
Hi there,
1. Regular CSS styling isn't loaded in Gutenberg. We've specifically taken the content aspects of the theme styling (things you can customize), and integrated them into Gutenberg using Gutenberg-specific CSS selectors. In most cases, the selectors you'd use on the frontend of your site wouldn't apply in Gutenberg.
2. To remove the block editor styling that GP adds, you can do this:
remove_action( 'enqueue_block_editor_assets', 'generate_enqueue_backend_block_editor_assets' );
Thank you Tom, I will stick with 2) in this case.
Sounds good :)