- This topic has 9 replies, 2 voices, and was last updated 3 years, 3 months ago by
Leo.
-
AuthorPosts
-
October 6, 2019 at 7:00 am #1027509
Carol
In this theme, is it possible to make categories and tags pupulate on the same line?
Obviously, the more the categories, there’s a possibility the tags will be pushed to the second line.
But by default, can we style it this way?
Currently using this code:
.cat-links:before {
content: “Filed Under: “;
width: auto;
font-family: “Lato”, sans-serif;
}
.tags-links:before {
content: “Tagged With: “;
width: auto;
font-family: “Lato”, sans-serif;
}If not, no worries. Just trying to maximize my “no scrolling needed” real estate. π
Thank you!
X80Ws+031v45
October 6, 2019 at 10:55 am #1027756Leo
StaffCustomer SupportHi there,
Try this CSS;
.cat-links, .tags-links { display: inline-block; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 6, 2019 at 11:15 am #1027779Carol
Thank you, Leo! That worked. π
Is there any way to tweak it with a few more pixels separation between categories and tags.
And then just the results links bolded?
Thank you very much.
October 6, 2019 at 1:38 pm #1027843Leo
StaffCustomer SupportTry adding this:
.tags-links { padding-left: 10px; } .tags-links a, .cat-links a { font-weight: 600; }
I also noticed that most of your code is wrapped in
@media (min-width: 769px) {
which makes them desktop only and I don’t think that’s intended.I believe you need to replace:
@media (min-width: 769px) { .post-image-aligned-left .post-image img { max-width: 405px; }
with this:
@media (min-width: 769px) { .post-image-aligned-left .post-image img { max-width: 405px; } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 6, 2019 at 3:05 pm #1027880Carol
Perfect on the tags/categories. Thank you so much!
That extra bracket in the replacement code you gave threw an error so I put it back to the original code without that extra bracket. What indicates that it’s desktop only? I can only see the single ending bracket as the difference in the code.
You’re very helpful, and I appreciate it. π
October 6, 2019 at 3:10 pm #1027883Leo
StaffCustomer SupportThat bracket definitely needs to be there.
Otherwise you’d see this on mobile:
https://www.screencast.com/t/a2w3CeJ7dxDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 6, 2019 at 5:50 pm #1027925Carol
Okay — so should I check the box and try to save?
Thank you.
October 6, 2019 at 6:44 pm #1027939Leo
StaffCustomer SupportYes π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 6, 2019 at 6:58 pm #1027945Carol
Okay, I did.
Thank you very much!
π
October 7, 2019 at 9:40 am #1028570Leo
StaffCustomer SupportNo problem π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.