- This topic has 42 replies, 4 voices, and was last updated 3 years, 7 months ago by
David.
-
AuthorPosts
-
February 6, 2022 at 8:10 pm #2107597
Elvin
StaffCustomer Supportsorry if I always post the photos but at least I hope to be of help to others.
That’s fine. We actually appreciate efforts like this because the forum also serves as a knowledgebase for everyone. 🙂
Glad you got it sorted. Let us know if you need further help. 😀
February 16, 2022 at 2:55 am #2120746francesco
sorry if i disturb you but i realized related news doesn’t work very well. in the sense that I would like the title underline to also appear when the mouse cursor is moved to the top of the image, not just if it is moved over the title.
February 16, 2022 at 2:59 am #2120750Elvin
StaffCustomer SupportWe may have to modify the selectors further as we’ll have to use
.wp-show-posts-inner
so the underline appears when we hover on the actual post item.Example selector.
.wp-show-posts-inner:hover h2.wp-show-posts-entry-title a{ text-decoration: underline; }
Or this one if it has to be just the image hover.
.wp-show-posts-image:hover + header.wp-show-posts-entry-header h2.wp-show-posts-entry-title a{ text-decoration: underline; }
March 2, 2022 at 9:18 am #2139724francesco
Hi elvin, is there a way to block underlining in tablets and mobiles?
March 2, 2022 at 9:26 am #2139731David
StaffCustomer SupportHi there,
if you want to limit the styles to particular device size then you enclose your CSS in an @media query:
@media(min-width: 769px){ /* Add your CSS in here for desktop sizes */ }
March 2, 2022 at 9:52 am #2139755francesco
Hi David, correct? Or do I have to change the spaces in the code?
March 2, 2022 at 9:58 am #2139764David
StaffCustomer SupportSpacing doesn’t matter but it does make it easier to read so i would lay it out like so:
@media(min-width: 769px){ selector { property: value; } another-selector { property: value; } }
make sure you close the @media query with its own
}
March 2, 2022 at 10:06 am #2139777francesco
Sorry but i can’t understand, selector, property, value. Come I imposed it? can you give me a demonstration with my code?
@media(min-width: 1023px){.paging-navigation p a:hover, h2.wp-show-posts-entry-title a:hover, div#rpwwt-recent-posts-widget-with-thumbnails-2 ul li a:hover, .generate-columns-container article.post:hover h2 { text-decoration: underline; }
March 2, 2022 at 10:08 am #2139783David
StaffCustomer SupportLike so:
@media(min-width: 1023px) { .paging-navigation p a:hover, h2.wp-show-posts-entry-title a:hover, div#rpwwt-recent-posts-widget-with-thumbnails-2 ul li a:hover, .generate-columns-container article.post:hover h2 { text-decoration: underline; } }
March 2, 2022 at 10:22 am #2139797francesco
thnx David, Can the 1023px setting prevent iPads and phones from displaying the effect? or is there a fairer measure?
March 2, 2022 at 10:31 am #2139817David
StaffCustomer Supportyou can change this line:
@media(min-width: 1023px) {
to
@media(min-width: 769px) and (pointer: fine) {
the
(pointer: fine)
means it will only apply to devices that are using a device such as a mouse for the user interface. If not mouse or other fine pointing device is detected then it won’t apply.March 3, 2022 at 2:16 am #2140476francesco
Summing up this is the final result. thnx David
@media(min-width: 769px) and (pointer: fine) { .paging-navigation p a:hover, h2.wp-show-posts-entry-title a:hover, div#rpwwt-recent-posts-widget-with-thumbnails-2 ul li a:hover, .generate-columns-container article.post:hover h2 { text-decoration: underline; } }
March 3, 2022 at 2:33 am #2140484David
StaffCustomer SupportThats great 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.