Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

How to add custom CSS for only ‘Posts’

$
0
0

Replies: 0

Hi there!

I have put the following CSS for styling my article’s title and meta:

.inside-article entry-title {
	text-align: center; 
	color: #15b562;
}

 .entry-header {
	text-align:center;
	 color: #595959;
    border-bottom-width: 3px;
    border-bottom-color: #15b562;
    border-bottom-style: solid;
    padding: 10px;
}

.author-name {
	font-weight:600;
}

It works, but the problem is the same style is applied to other Pages on the website as well.

Like this: https://app-60080014c1ac18031c64f891.closte.com/

How can I avoid this?

How can I add custom CSS for only posts but not for other pages like archives?


Viewing all articles
Browse latest Browse all 59525

Trending Articles