Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 537 Bytes

WPThemeCompatibility.md

File metadata and controls

19 lines (13 loc) · 537 Bytes

WordPress Theme Compatibility

Twenty Twenty

Issue: EnlighterJS codeblocks are floating left

Cause: The twentytwenty uses a weak (sorry guys) margin: auto to align each content block centered in the page instead of using a wrapper. For compatibility reasons, EnlighterJS resets the margin/padding of its container - therefore the margin is not applied.

Solution: Add some custom css

.enlighter-default{
    margin: 0 auto 1.25em auto;
}