Blog Posts: categories and posts body text is styled differently

Hi there,

I have tried searching through the forums, any help would be greatly appreciated.

The Blog Posts for some reason is displaying differently depending on whether the user clicks on the “category” or the “blog post”

First image shows what the user sees when they’re on a selected category, the second image shows what the user sees once they’re on the post.

Notice how there’s a difference in the way the body text is being displayed (For example, the date and time are bolded). I’m having difficulty figuring out why this is happening and how to fix this.

I pretty much need the categories section (1st image) to display as how it is in the “blog post” (2nd image).

Image 1:
http://wordpress-394281-1240406.cloudwaysapps.com/category/social/

Image 2:
http://wordpress-394281-1240406.cloudwaysapps.com/social/easter-social/

Hi Aleksej ,

Please be advised that the text you see on category listing page is an excerpt and it is generated dynamically from the very first 55 words of the contents. Any html codes or shortcodes will be strip off and only a plain text will be used in the excerpts. If you want to have a custom excerpt, you can make use of the manual excerpts instead. Manual Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts.

Hope this helps.

I see that class “entry-content excerpt” is displayed instead of class “entry-content content”. Is there no way to change this?

I looked through theme options and all I see is these functions for the blog, is there no more functionality?

Hi @Aleksej_Original,

Unfortunately, changing the class won’t help, Wordpress strip HTML tags in an excerpt and make it as one line, so there is no way for us to style this same as on the single post page.

There is a guide on How to Prevent Wordpress from Stripping HTML Tags in Excerpt, but we won’t be able to provide support for this though as this is a customization, you might want to hire a developer if you’re not comfortable doing this.

Cheers!

1 Like

Hi there,

Thank you for sharing the guide. I was able to understand it and implement the change. Now it’s looking much better.

This is a useful tool to have.

Thank you for your help!

Cool, we are delighted to assist you with this.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.