Skip Navigation

Fields and Text block formatting broken by GeneratePress theme


Topic Tags: Toolset Blocks


The Fields and Text block, when switched to HTML mode, features a code editor based on Codemirror. The editor appears broken when the GeneratePress theme is active.


The GeneratePress theme injects styles that break the Codemirror styling.

As a workaround the following PHP snippet (which you can add at Toolset > Settings > Custom Code) will add inline style rules to the document head to override the GeneratePress styles and revert to the normal Codemirror style rules.

Check this link for details of the sample code:

a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>