Archived topic
Styling questions
3 replies · Started by Ingo on August 2, 2018
Hi,
I've got some styling questions!
1) Regarding the blog posts themself:
I added some custom CSS to change the layout of the links:
.inside-article a {
font-weight: bold;
}
.inside-article a {
text-decoration: underline;
}
Unfortunately, the meta-data (date for example) are now also in this style. How can I remove the "link function" of the date? As I do not release several article a day, there is no need to make the date clickable.
Besides that, is there a way to add "published at" to the date?
2) Regarding the blog archive:
How can I change the H2 link (only in the archive) to non-underlined and non-bold?
I hope you understand my issues :-)
Best regards
Ingo
Hi there,
1. Take a look at the first and last examples here:
https://docs.generatepress.com/article/generate_post_date_output/
2. Try this for your CSS:
body:not(.blog):not(.archive) .inside-article a {
font-weight: bold;
text-decoration: underline;
}
Let me know :)
Awesome, super fast and works like a charm! Thanks a lot!
No problem :)