![]() |
H2 Page Titles - Styling Only for Blog
I would like to add a separate style for the H2 page title tags in my blogroll and blog pages, than the style I have for the rest of my pages. I thought that identifying it in CSS by .page-id-53 h2 would work but it didn't. Can anyone help?
|
Please include a link to your site with all questions.
|
Site Link
Here's the link: http://www.originalginger.com/blog/
|
That page doesn't have a body class of .page-id-52. These are the body classes
<body class="page page-id-29 page-template page-template-page_blog-php header-image full-width-content"> |
Yes, I did use the correct page id - I was just giving an example in my previous post. The CSS is not working for me. I'm obviously doing something wrong. I wanted to change just the H2 title margins and just on the blogroll and post pages. An example of the code I tried:
Code:
.page-id-29 h2 { |
So you're all set then?
|
I still can't figure out how to also adjust the margin on the post title when you click the post through to it's own page if that makes any sense...
|
The title on the single post page is wrapped in h1 tags not h2 tags.
|
So how do you accomplish that given that every single post has it's own separate page. We have over 50 posts. Is there a way to style all post page h1 titles in a certain way without affecting the h1 title everywhere else on the site? Appreciate your help with this by the way..
|
"single" is a body class applied to all single pages
|
Thank you.
|
You're welcome :):
|
| All times are GMT -5. The time now is 10:13 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.