-
AuthorPosts
-
May 11, 2017 at 7:14 pm #791840
I’m having difficulty redefining my post titles’s color (which is a h2) within my categories. I have a conflict of color in my current h2’s my homepage and would prefer to just define the h2’s on that particular category page page. The following code was suggested by another one of your moderators but it hasn’t worked. I was trying to define the h2 on this specific category/post-id-441 page as a darker color (it’s currently set to white and I can’t see it). Here is the code example:
.page-id-441 h2.post-title.entry-title {
color: #5c5c5c !important;
}Maybe there is a way to tell ALL category pages to have a specificy h2 color instead of using the specific page id like above?
May 11, 2017 at 7:20 pm #791849Hey artisforever,
Please post a link to the site/page in question so we can have a better understanding of what you need.
Best regards,
Jordan ShannonMay 11, 2017 at 10:10 pm #791950Hey Jordan, posted in private content below, thanks.
May 12, 2017 at 6:07 am #792066Hi artisforever,
Please try this code instead:
#top.category #wrap_all .all_colors h2.post-title.entry-title { color: #5c5c5c !important; }
If you want this applied to other pages, you can check the
<body>
tag and see what classes are there. :)I hope that helps!
Best regards,
SarahMay 12, 2017 at 3:39 pm #792356Sarah!!!
This worked perfect. Is their additional changes I could also use with this CSS?
For instance, on that same page, can I remove the “by” portion of text. We didn’t want the author/published by portion to show up. I think I used a plugin to get rid of the author name, but that portion of text is still bothering me!
Lastly, can I decrease the margins in between posts, the gap is pretty large right now.
Thanks again for all your support.
May 12, 2017 at 3:56 pm #792362Hi!
Just for category pages, right? Please add this code:
#top.category .post-meta-infos .blog-author.minor-meta, #top.category .post-meta-infos .text-sep.text-sep-cat { display: none; } #top.category .template-blog .post_delimiter { margin-bottom: 10px; padding-top: 10px; }
You can adjust the value of the margin and padding. Originally, that’s 50px.
Best regards,
Sarah -
AuthorPosts
- You must be logged in to reply to this topic.