- This topic is empty.
Viewing 14 posts - 1 through 14 (of 14 total)
Viewing 14 posts - 1 through 14 (of 14 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I want to style the posts on my blog but when i click a post and it goes to the posts specific page I want to style it another way. So basically I want the posts list to have a specific class that doesn’t apply to the posts specific page. If you don’t get what i’m taking about i’m sure I can explain it another way.
Do you have a link?
The site isn’t even near being finished but here it is [yardsale.cdcwebdesign](http://yardsale.cdcwebdesign.com “yardsale.cdcwebdesign.com”)
tell me if you need me to post anything in my files such as the loop.php file.
I’m no WP guru but doesn’t your home page / blog list already have a couple of classes (‘home’ and ‘blog’) you could use?
not that i know of. I’m using firebug and the only classes that i see are the default ones.
I’m new to wordpress so I don’t know hardly anything.
Yeah but what I am saying is that those ** body** classes exist (AFAIK) on the page you want to style.
Can’t you use those to style everything else?
I’m still not getting what your saying.
I just took off the class “yardsale-post” and now go look at all the default classes in the post.
What I am saying is that your blog page has a class on the body of ‘blog’.
My assumption is that this class will ONLY appear on that specific page. If so, you can style any article (or other element) using that hook.
.blog article
now i get it, let me try that real quick.
that works, thanks so much.
Happy my limited knowledge was useful.