Broken Paragraphs and heading since changing themes
-
My client recently changed themes and now all her old posts have broken formatting the code looks like this:
<!-- wp:paragraph {"style":{"typography":{"fontSize":"18px"}}} --> <p style="font-size:18px"><p class="has-montserrat-font-family has-custom-font" style="font-size:18px;font-family:Montserrat">Dummy Text <em>(by the way)</em></p></p> <!-- /wp:paragraph -->
The font size is supposed to be 18px and Montserrat and i’m happy to make that global via the theme settings or CSS but how can we fix these broken blocks? They all say “This block contains unexpected or invalid content.” and ask for attempted recovery.
Removing
<p class="has-montserrat-font-family has-custom-font" style="font-size:18px;font-family:Montserrat">
and it’s closing tag fixes it but is there an easy way to bulk do that? I can easily search and replace the<p class="has-montserrat-font-family has-custom-font" style="font-size:18px;font-family:Montserrat">
but the closing</p>
tag is more difficult.The page I need help with: [log in to see the link]
- The topic ‘Broken Paragraphs and heading since changing themes’ is closed to new replies.