Hardcoding Excerpt Indentation

[ad_1]

Hi all – I have custom CSS that indents the first word of the paragraph which is helpful for long text posts. However, it globally affects all paragraphs, including the excerpt, which I don’t need indented. I figured out you can use HTML in the excerpt and it’s a simple P class tag – however, my staff of editors will be adding the excerpt and even if they use the HTML tag, the likelihood of them getting wrong is pretty high. It’s a simple copy and paste of the code, but they won’t do it or they’ll get it wrong. Guaranteed.

So, what I’m looking for is a way to hardcode the excerpt to exclude the CSS indent for the excerpt only. I know WordPress well enough and can edit the code if I have to, I’m hoping there is a quick fix to ensure the excerpt doesn’t have that indentation, just to make life easier for me. Thanks!

In this example, I used HTML in the post excerpt itself. The second post one is using the <P> tag.

[https://fivesouth.dreamhosters.com/](https://fivesouth.dreamhosters.com/)

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer