- This topic has 10 replies, 4 voices, and was last updated 4 years, 9 months ago by
David.
-
AuthorPosts
-
April 19, 2021 at 6:56 pm #1740998
Sibi Paul
Hi…
I have seen popular News websites are Highlighting their Internal links with a thick yellow underline…
That helps them to reduce the bounce rate…
people are attracted to click on those links…
How can we do that in GP?
April 19, 2021 at 7:13 pm #1741006Elvin
StaffCustomer SupportHi there,
Can you specify which links do you want to apply this?
If it’s the content links, you can try adding this CSS:
.entry-content a { text-decoration: underline solid yellow; }Here’s how to add CSS – https://docs.generatepress.com/article/adding-css/
April 20, 2021 at 12:37 pm #1742247Sibi Paul
Hi…
That code worked…
But, I need this line a little bit thicker… and a little space between the TEXT and Line…
Then only it’ll appear to stand alone and people can read the text properly…
Thanks.
April 20, 2021 at 12:57 pm #1742256Ying
StaffCustomer SupportHi Sibi,
Try this CSS instead, feel free to adjust the numbers:
.entry-content a { border-bottom: 3px solid yellow; padding-bottom: 2px; }April 20, 2021 at 1:07 pm #1742264Sibi Paul
That’s Awesome…
Can I add any Animation on Hover…
Animation on this Underline while hoven…
I’ve seen that on some websites before…
even if it’s not possible… I’m very much happy with the current settings…
Can I change the breadcrumbs font size? ( create new ticket or same )
April 20, 2021 at 1:09 pm #1742269Sibi Paul
When I hover on Links, it turns Bold…
is that Possible?
April 20, 2021 at 2:19 pm #1742300Ying
StaffCustomer SupportWith animation that’s another story, you could give this CSS a try, but it won’t work if the link occupies more than 1 row.
.entry-content a { position: relative; } .entry-content a:hover:before { right: 0; transition: all 0.5s ease; } .entry-content a:before { content: ""; position: absolute; bottom: -5px; left: 0; right: 100%; background-color: yellow; height: 2px; }And yes please, open a new topic for non-related questions, thanks 🙂
April 20, 2021 at 2:39 pm #1742323Sibi Paul
That worked…
Thanks.
April 20, 2021 at 3:07 pm #1742340Ying
StaffCustomer SupportGlad to hear that 🙂
June 26, 2021 at 2:58 pm #1836030Sibi Paul
This code adds Underline everywhere…
.entry-content a { border-bottom: 3px solid yellow; padding-bottom: 2px; }What if, I want to avoid Underline from the Home page, archive posts, and meta?
I only want to show Underline in the single posts.
Not even in the pages.
Kindly help.
Thanks.
June 26, 2021 at 4:10 pm #1836068David
StaffCustomer SupportChange this selector:
.entry-content ato:
.single-post .entry-content p aThat will select only links with a paragraph within the content of the single post.
-
AuthorPosts
- You must be logged in to reply to this topic.