- This topic has 13 replies, 3 voices, and was last updated 6 years, 2 months ago by
Leo.
-
AuthorPosts
-
September 14, 2017 at 9:46 am #385414
George
I changed the link color, however the links are not underlined. I read in another post that I should add this CSS: a,
a:visited {
text-decoration: underline;
}
I tried it but it doesn’t work. This is a regular page, no page builder involved. How can I underline the links in posts and pages?September 14, 2017 at 10:19 am #385456Tom
Lead DeveloperLead DeveloperTry this:
a, a:visited, a:hover { text-decoration: underline; }
September 14, 2017 at 10:49 am #385473George
Unfortunately this doesn’t work either.
September 14, 2017 at 11:22 am #385494Tom
Lead DeveloperLead DeveloperCan you link me to the site?
September 14, 2017 at 11:29 am #385497September 14, 2017 at 11:35 am #385501Tom
Lead DeveloperLead DeveloperYour CSS is broken. You need to close the block for your blockquote with a curly bracket:
}
September 14, 2017 at 11:45 am #385506George
This is how I have it in my Simple CSS: a, a:visited, a:hover {
text-decoration: underline;
}I also have this code in there to get rid of the post dates, but this doesn’t work either:
.comment-meta {
display: none;
}So from what I can see, the CSS is not broken.
September 14, 2017 at 11:56 am #385508Tom
Lead DeveloperLead DeveloperYour
blockquote
CSS has an opening{
, but no closing}
.September 14, 2017 at 12:04 pm #385511George
Aha, thanks, I had missed that. Now the underline is working. However now the post titles are underlined as well:
https://www.screencast.com/t/OyXW6pxh
What can I do so that only the links in the post body are underlined?Another question: Is there a way to only get rid of the post date, but not of the name of the poster. The CSS that I have gets rid of everything, but I just want to eliminate the post date:
.comment-meta {
display: none;
}My second question is if there is a setting to eliminate the previous and next post links at the bottom of a post, or do I need CSS for that?
https://www.screencast.com/t/ksKP3anKOWWSeptember 14, 2017 at 3:06 pm #385593Leo
StaffCustomer SupportBy default WordPress excerpt strips all HTML so the links underline won’t work unless you use the more tag: https://docs.generatepress.com/article/using-the-more-tag/
You can try this to underline the content only:
.site-content a, .site-content a:visited, .site-content a:hover { text-decoration: underline; }
Date can be removed using the customizer already: https://docs.generatepress.com/article/blog-overview/#blog-content
Post navigation will be an option in the upcoming GP premium. For now try this CSS:
.post-navigation { display: none; }
Let me know.
September 15, 2017 at 11:06 am #386098George
The underlining works with this code, but still all the post titles are underlined as well when I click on the “Blog” link in the main menu. That’s before I ever open a post and click on the ‘more’ tag.
If there is no solution for this issue, could this code be modified so that the underline only happens on hover?
September 15, 2017 at 11:31 am #386113Leo
StaffCustomer SupportActually try this with more tag:
.entry-content a, .entry-content a:visited, .entry-content a:hover { text-decoration: underline; }
Let me know.
September 15, 2017 at 11:36 am #386117George
This one works, thank you!
September 15, 2017 at 2:24 pm #386190Leo
StaffCustomer SupportNo problem!
-
AuthorPosts
- You must be logged in to reply to this topic.