- This topic has 18 replies, 3 voices, and was last updated 3 years, 8 months ago by Tom.
-
AuthorPosts
-
August 6, 2020 at 8:07 am #1389639Rohan Verma
1. How can I change the single post category box text color?
2. For multiple categories, it shows in (comma) format like – News, Games. I want to show separate category boxes.
Current Look: https://www.gadgetheadline.com/ios-14-beta-4-whats-new/I’m using this CSS.
.cat-links {
background: #f6f4ff;
padding: 6px 6px 6px;
margin-right: 6px;
border-radius: 2px;
font-weight: 700;
font-size: 15px;
text-transform: normal;
border-left: 0px solid;
}August 6, 2020 at 8:20 am #1389665DavidStaffCustomer SupportHi there,
use this CSS instead:
.entry-meta.cat-links { font-size: 0; } .entry-meta.cat-links a { background: #f6f4ff; padding: 6px 6px 6px; margin-right: 6px; border-radius: 2px; font-weight: 700; font-size: 15px; text-transform: normal; border-left: 0px solid; }
August 6, 2020 at 9:57 am #1389822Rohan VermaThanks that changed the category box.
But I want to add the category box outline.
And also suggest the category link hover color.
August 6, 2020 at 12:49 pm #1390109DavidStaffCustomer SupportTry this:
/* add cat term hover color */ .entry-meta.cat-links a:hover { background-color: red; color: #fff; } /* Add border box to cat terms */ .entry-meta.cat-links { display: inline-block; padding: 5px 0 5px 5px; border: 1px solid #ccc; }
August 7, 2020 at 6:49 am #1391341Rohan VermaShould I put this code instead of the previous one you given?
Or together?
August 7, 2020 at 6:58 am #1391374DavidStaffCustomer SupportTogether .
August 7, 2020 at 7:08 am #1391395Rohan VermaHi David. It seems that the last single css works fine. But the multiple categories are showing with comma like before.
And the together css code looks like this.
https://prnt.sc/tvrhgtThe new css is good. Just add separate boxes to it.
August 7, 2020 at 7:20 am #1391407DavidStaffCustomer SupportSorry i am not clear.
Do you just want a border around each category term?
If you can provide a screenshot of how its meant to look then it would be easier.August 7, 2020 at 10:04 am #1391800Rohan VermaYes. Just like the below link.
August 7, 2020 at 10:44 am #1391838DavidStaffCustomer SupportUse all of the code i provided aside from this:
/* Add border box to cat terms */ .entry-meta.cat-links { display: inline-block; padding: 5px 0 5px 5px; border: 1px solid #ccc; }
If you don’t want the rounded corners then remove this property:
border-radius: 2px;
August 7, 2020 at 11:35 am #1391903Rohan VermaSeparate box still not showing. And there is a gap between the border line and category meta background/hover color.
Check this: https://www.gadgetheadline.com/ios-14-beta-4-whats-new/
August 7, 2020 at 11:36 am #1391907Rohan VermaI need like this as mentioned earlier.
August 7, 2020 at 1:41 pm #1392092TomLead DeveloperLead DeveloperTry removing this CSS completely
.entry-meta.cat-links { display: inline-block; padding: 5px 0 5px 5px; border: 1px solid #ccc; }
That should give you this look: https://www.screencast.com/t/CHppaaGKHfa1
August 8, 2020 at 2:31 am #1392587Rohan VermaHey Tom, still there is no outline box separately.
August 8, 2020 at 5:27 am #1392744DavidStaffCustomer SupportThis is what i see when i visit the link you provided:
So the category terms are correct ?
Do you want to remove the border around the post content ?
If so DELETE this CSS:.separate-containers .inside-article { border-radius: 5px; box-shadow: 0 0 15px 5px rgba(0,0,0,.1); }
And set your Customizer > Colors > Body to White.
-
AuthorPosts
- You must be logged in to reply to this topic.