Archived topic
Hover post title when touch its picture
5 replies · Started by Fekry on May 18, 2020
Hi there
In homepage, how can I hover post title (color) when cursor its picture?
Thanks
Hi there,
Not too sure what you mean - are you wanting to link the entire box for each post?
When I pass cursor on picture (in homepage), I want the post title color to change to the Hover as in this page sidebar:
https://www.bbc.com/arabic/world-52724800
Note: I use this CSS for my homepage:
}
.wp-show-posts-entry-title a {
color: #303030 !important;
}
.wp-show-posts-entry-title a:hover {
color:
#1e72bd !important;
}
.uagb-post__text .uagb-post__title a:hover {
color: #1e72bd !important;
}
Hi there,
DELETE this:
.wp-show-posts-entry-title a:hover {
color:#1e72bd !important;
}
.uagb-post__text .uagb-post__title a:hover {
color: #1e72bd !important;
}
and ADD this:
.wp-show-posts-entry-title a:hover,
.wp-show-posts-image:hover + .wp-show-posts-entry-header .wp-show-posts-entry-title a,
.uagb-post__text .uagb-post__title a:hover,
.uagb-post__image:hover + .uagb-post__text .uagb-post__title a {
color: #1e72bd !important;
}
It works perfect, thanks David.
Glad to be of help