Skip Navigation

Fields and Text block formatting broken by GeneratePress theme

Open

Topic Tags: Toolset Blocks

Symptoms

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.

Workaround

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: https://pastebin.com/VGgZ2A1f

Leave
a Reply

Your email address will not be published.

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>