Title: TYPOGRAPHY/HTML problem
Last modified: March 5, 2021

---

# TYPOGRAPHY/HTML problem

 *  [agorawales](https://wordpress.org/support/users/agorawales/)
 * (@agorawales)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/typography-html-problem/)
 * When I post articles to my pages I would like the author name to appear in bold
   on a separate line. It’s doing this fine in the article full page, but in the
   preview/ extract block on the front page it’s appearing in the same style/ format
   as the extract text, for example …
 * Guest blog by Professor Toby James The scene was set for May 6 2021 to be a historic
   day for democracy in Wales. It would be the first ti ……
 * How can I get the extracts to look like this, on a separate line:
 * **Guest blog by Professor Toby James**
    The scene was set for May 6 2021 to be
   a historic day for democracy in Wales. It would be the first ti …..
 * Many thanks
 * William
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftypography-html-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Vlad](https://wordpress.org/support/users/vladytimy/)
 * (@vladytimy)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/typography-html-problem/#post-14138512)
 * Hi, [@agorawales](https://wordpress.org/support/users/agorawales/)
 * By default `get_the_excerpt()` has a filter `wp_trim_excerpt()` that removes 
   all HTML tags from excerpts.
 * You can:
    1.  Contact your theme developers. Since you use a commercial theme (Divi ), please
       go to their official support channel. We feel they are best equipped to support
       their products:
    2. [https://www.elegantthemes.com/members-area/help/](https://www.elegantthemes.com/members-area/help/)
    3. Forum volunteers are not given access to commercial products, so we would not
       know why your commercial theme is not working properly. **[Commercial products are not supported in these forums.](https://make.wordpress.org/support/trouble/section-1-getting-started/what-is-not-supported/)**
    4. Add some php code in your child theme functions.php file. I just tested the 
       solution at [https://wp-website-coach.com/code-snippet/a-bit-of-php-to-preserve-html-formatting-in-standard-wordpress-excerpts/](https://wp-website-coach.com/code-snippet/a-bit-of-php-to-preserve-html-formatting-in-standard-wordpress-excerpts/)
       and it works for me. You would want to modify it a bit like this to include `
       <pre>`
        `$text = strip_tags($text, '<strong><pre><b><em><i><a><code><p><br>');`
 * I’m sorry the above solution is a bit more technical fix and I couldn’t find 
   a plugin. If this is very important to you and you don’t feel comfortable coding,
   you can ask a developer to help you. (don’t accept nor ask for any job offers
   on these forums – you can try at [https://jobs.wordpress.net/](https://jobs.wordpress.net/))
 * Hope this helps,
    Kind regards!

Viewing 1 replies (of 1 total)

The topic ‘TYPOGRAPHY/HTML problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Vlad](https://wordpress.org/support/users/vladytimy/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/typography-html-problem/#post-14138512)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
