• Resolved Phet Maly

    (@phet-maly)


    Hey guys,

    After installing wp-Typography on my website, it does its job in blog articles. But when on pages, it breaks the Enfold theme design. So…

    I’ve tried the “Ignore parser errors” checkbox, and it does correct the layout being broken. But…

    I would rather have it working. Is there a way I can troubleshoot this?

    Thanks for the help,
    Phet

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pepe

    (@pputzer)

    Most likely the HTML fragments passed to wp-Typography by Enfold are not well-formed (meaning that not all tags that need a closing element (like <div>Something</div>) actually include that closing element. The HTML5 parser built into wp-Typography will try to correct that, resulting in breakage when the various parts are put together. This is a common problem with page builders in WordPress.

    A potential solution is using this snippet in functions.php. However, the “full page mode” is experimental and you will probably need to exclude certain parts of the page from being processed via the “classes to ignore” and “IDs to ignore” settings.

    add_action( 'wp_head', function() { ob_start( function( $buffer ) { return WP_Typography::process( $buffer ); } ); } );
    add_action( 'wp_footer', function() { ob_end_flush(); } );
    Plugin Author pepe

    (@pputzer)

    Hi @phet-maly, have you been able to resolve the issue?

    Plugin Author pepe

    (@pputzer)

    I am assuming that the issue has been resolved, @phet-maly. If not, feel free to reply to this thread and reopen it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-Typography breaks Enfold theme’ is closed to new replies.