Acabado: Fixing Italics and Bold Font on Pages

by Josh Koop | Last Updated:  July 26, 2020
Apply to Ezoic Surfer SEO 7 Day Trial Brave Browser
Pro Blogger Income is owned and operated by Pro Blogger Income is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Pro Blogger Income also participates in affiliate programs with Avantlink, Clickbank, CJ, ShareASale, and other sites. Pro Blogger Income is compensated for referring traffic and business to these companies.

Numerous people were reporting issues with having bold or italicized text on their blog roll pages. So I dug in much more to find the bug and the fix is below until the next update comes out.

The lowdown is that what is causing it is the code in the themes function.php (around line 735)

You have to open the Theme Editor and locate functions.php from the right-hand side.

Find this below code on around line 735

$excerpt = strip_tags( $content, '<b><strong><em>' );

as soon as I remove it from leaving in tags (b, strong, em) then it is fine

$excerpt = strip_tags( $content );

This is due to the content in my first paragraph having these tags and I would expect the code in the theme tells it not to remove it from the excerpt, but then on the blog there is no ending or which makes ALL CONTENT AFTER THIS HAVE THE BOLD AND ITALIC OR WHATEVER WAS ENABLED.

I love technology, I have plenty of technical side experience but never really thought of blogging as a way to earn an income. With everything that has gone on in the last couple years and the instability of the job markets I started to learn how to blog and build affiliate niche sites to add more income channels to give me the chance to break free from the financial chains that bind me and find real freedom!