- This topic has 51 replies, 5 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
October 20, 2022 at 12:27 am #2379604
Fernando Customer Support
I see. Remove that Bottom border you added, and add
add-underline-hoverto the class list of the Headline Block. Then add this CSS in Appearance > Customize > Additional CSS:.gb-headline.add-underline-hover:hover { border-bottom: solid 2px #0000ff; }October 20, 2022 at 12:49 am #2379636francesco
Forgive me Fernando but I did not understand what I should do.
October 20, 2022 at 12:52 am #2379642francesco

I think I did as you suggested but nothing has changed.
October 20, 2022 at 12:53 am #2379643Fernando Customer Support
I see. I’ll add some screenshots.
1. Remove the Border size value you added for the Headline Block. Ex: https://share.getcloudapp.com/jkuWpkN8
2. Addadd-underline-hoverto the class list of the Headline Block. Ex: https://share.getcloudapp.com/lludWlLY
3. Add the CSS code above through Appearance > Customize > Additional CSS.October 20, 2022 at 12:58 am #2379645Fernando Customer Support
I see. It’s not working because, the Container holding the Headline is a link.
Try changing the code to this:
.gb-container:hover .add-underline-hover { border-bottom: solid 2px red; }October 20, 2022 at 1:12 am #2379658francesco
1) honestly I don’t see any edges that need to be removed.
2) now it seems to work but I would like the line to cover only the text it occupies.
3) the CSS seems to stretch the image I think.October 20, 2022 at 1:15 am #2379661Fernando Customer Support
Can you add
add-underline-hover-containerto the class list of the Container Block which is the link. Then, change the code to this:.gb-container.add-underline-hover-container:hover .add-underline-hover { border-bottom: solid 2px red; }October 20, 2022 at 1:23 am #2379665francesco
Unfortunately it doesn’t seem to work. I will provide you with access data if it is easier for you.
October 20, 2022 at 8:12 am #2380176David
StaffCustomer SupportRemove you current CSS.
And apply the method i provided here:https://generatepress.com/forums/topic/page-hero-and-load-more-article-problems/#post-2378564
With that headline block selected – go to Advanced > Additional CSS Class(es) and add:
border-hoverThen add this CSS:
.border-hover:not(:hover) { border-color: transparent !importnat; }October 20, 2022 at 9:04 am #2380230francesco
Hi david, i did as you told me but unfortunately it doesn’t work.
October 20, 2022 at 9:17 am #2380244David
StaffCustomer SupportAah you have a container link.
Change the CSS to:.border-hover:not(:hover) h2 { border-color: transparent !important; }And move the
border-hoverclass to the GB Container Block that has the container link.October 20, 2022 at 2:20 pm #2380502francesco
Very thanks david, now it seems to work fine, although I would like the hover to activate when I over the title and not when I hover over the image. in fact now I find myself having another problem, the category is not selectable despite the fact that I made it dynamic, I open the post and I do not enter into the category. how can i give importance to title, category, author despite the image with link?
October 20, 2022 at 5:25 pm #2380579Fernando Customer Support
It’s not possible. In web development – HTML – having nested links or links on top of one another doesn’t work.
Since the Category/Author is inside the Container Link, the Category/Author Links wont work. You’ll need to restructure your design placing the Category/Author links outside of the Container Link.
The same concept applies for the Title + underline on hover.
October 21, 2022 at 12:57 am #2380805francesco
Thanks fernando, I will proceed as you say.
October 21, 2022 at 1:56 am #2380856Fernando Customer Support
Alright! You’re welcome Francesco!
-
AuthorPosts
- You must be logged in to reply to this topic.
