Home › Forums › Support › Underline links on hover This topic has 21 replies, 3 voices, and was last updated 7 years ago by Leo. Viewing 15 posts - 1 through 15 (of 22 total) 1 2 → Author Posts September 6, 2017 at 5:01 pm #380670 Gian Hi Tom, I’m trying to customize a few things (GeneratePress Premium) and I was wondering if there is an option or CSS to underline links only on hover. Thank you in advance! September 6, 2017 at 5:23 pm #380690 LeoStaff Customer Support Hi there, Try this CSS: .inside-article a:hover { text-decoration: underline; } Adding CSS: https://docs.generatepress.com/article/adding-css/ September 6, 2017 at 5:27 pm #380692 Gian It works, thank you! What if I would like to underline only links inside content and exclude blog post titles (h1, h2 etc)? September 6, 2017 at 11:21 pm #380788 LeoStaff Customer Support Hmm this instead: .entry-content a:hover { text-decoration: underline; } September 7, 2017 at 2:44 am #380849 Gian Excellent, thank you! There’s only one last thing, I have buttons (https://docs.generatepress.com/article/adding-buttons/) and I would like also to exclude them, what should I do in this case? September 7, 2017 at 8:17 am #381028 LeoStaff Customer Support Try this instead: .entry-content a:not(.read-more):hover { text-decoration: underline; } September 7, 2017 at 8:38 am #381045 Gian This code works inside articles but not on the homepage, where I replaced the “Read More” link with buttons. Any idea how to achieve the same also on the homepage? Also, is it possible to change the “Read More” link to the top of the page? September 7, 2017 at 9:01 am #381071 LeoStaff Customer Support Can you link me to the site? September 7, 2017 at 9:09 am #381083 Gian Yes, sure it’s still “under construction” but you can see the changes. September 7, 2017 at 9:16 am #381095 LeoStaff Customer Support Adjusted the code above. September 7, 2017 at 10:23 am #381135 Gian The code above unfortunately works for “read more” buttons in homepage, but not for other buttons placed inside articles, pages etc Any idea how to remove the underline on every button and keep on other links? September 7, 2017 at 10:27 am #381137 Gian Probably solved with the CSS .inside-article a:not(.button.ghost):hover { text-decoration: underline; } What do you think? Thank you September 7, 2017 at 10:30 am #381138 Gian No, it remove underline on normal links 🙁 September 7, 2017 at 11:37 am #381182 LeoStaff Customer Support Hmm try: .entry-content a:not(.read-more):not(.button):hover { text-decoration: underline; } September 7, 2017 at 3:05 pm #381329 Gian Perfect, thank you! Last question, is there a simple way to change “Read More” link to the whole blog post instead of the line where the more tag is placed? Author Posts Viewing 15 posts - 1 through 15 (of 22 total) 1 2 → You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In