Excerpt Formatting Issue:

Posted in: Newspaper
Post count: 2

Subject: Excerpt Formatting Issue: Paragraph Breaks <p> tags are being stripped – Newspaper Theme
​Dear tagDiv Support Team,
​I am experiencing a persistent issue with my post excerpts (teasers) when they are displayed on my homepage and archive pages using your theme.
​The Problem:
​The theme is stripping out paragraph breaks (the <p> HTML tag) from the post excerpts, causing the text to be displayed as one single, dense block. This happens regardless of whether the excerpt is:
​Automatically Generated from the post content.
​Manually Entered in the “Excerpt” meta box.
​What I Have Tried (and failed with):
​Custom Excerpt: Writing manual excerpts with HTML tags (e.g., <p>Text</p>). The tags are still removed.
​Advanced Excerpt Plugin: I installed and configured the Advanced Excerpt plugin, ensuring the option to allow HTML tags was active. The theme seems to override the plugin’s functionality, and the paragraph breaks are still removed.
​My Question:
​Is there a specific setting within the Theme Panel, a tagDiv Composer Block setting, or a PHP filter that I can use in a Child Theme’s functions.php file to specifically allow the <p> tag (paragraph breaks) in the post excerpts displayed in your post listing blocks (like Flex Blocks)?
​I only need the paragraph formatting (<p>) to remain intact to improve readability.
​Thank you for your assistance.

Post count: 35449

The automatic excerpts will strip the HTML tags from the post content, so the excerpt will be simple text. Even if there is HTML in the post content, it will be removed, but if the HTML is manually set the excerpt will be displayed – https://i.imgur.com/IIrVatz.pngresultshttps://i.imgur.com/6bM4mth.png

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.