Tagged: x
-
AuthorPosts
-
June 28, 2016 at 7:05 pm #1064014
tats86ParticipantHello,
I’m trying to change the hover over recent blog posts (and on blog page) from the hover color with icon to an image of my own. Can this be achieved?
My website is aimetamarque.com
Thank you
June 29, 2016 at 1:51 am #1064395
RupokMemberHi there,
Thanks for writing in! You can add this under Custom > CSS in the Customizer.
.x-recent-posts a:hover .has-post-thumbnail .x-recent-posts-img::before { content: url("//yourimagehere.png"); }Replace //yourimagehere.png with your uploaded icon image path. Make sure to use a small image.
Cheers!
June 29, 2016 at 5:07 am #1064566
tats86ParticipantThanks for the quick reply. I’m afraid it’s not doing it. What size should the image be?
June 29, 2016 at 6:46 am #1064680
ChristianModeratorPlease replace the code given previously with
.x-recent-posts a:hover .x-recent-posts-img { background: url(yourimage.png); background-size: cover; }Just in case you need to remove the yellow overlay, please add
.x-recent-posts a:hover .has-post-thumbnail .x-recent-posts-img:after { opacity: 0; }Thanks.
June 29, 2016 at 8:28 am #1064841
tats86ParticipantThank you.
1. I was able to remove the hover over color, but the image is still not working. I can still see the icon.
2. Also, there seems to be a tilt when hovering over, and it masks part of the image. Is there a way to remove that as well?
3. I would also like these changes to be applied not only to my homepage, but to the blog page.
Thanks for your help. I hope I’m explaining my problems correctly.
June 29, 2016 at 9:47 am #1064954
JoaoModeratorHi There,
1- To Remove the Icon please add the following code :
.x-recent-posts .x-recent-posts-img:before { content: none !important; }The image does work, I have tested on my end.
2- I Could not replicate this issue on my end, please provide us your URL in order that we can have a look at the issue.
3- Add .home in front of every code used for this purpose.
Hope that helps,
Joao
June 29, 2016 at 11:54 am #1065133
tats86ParticipantHi Joao,
I applied the previous suggestion but nothing changed.
1. Still not seeing the linked image on hover, I only see the image tilt slightly
2. The blog page has not reacted to any of these.My URL is http://aimetamarque.com/
June 29, 2016 at 12:53 pm #1065237
JoaoModeratorHi There,
Yes that is definitively tilting.
In order that we can have a look on the issue would you mind providing your WP Admin Credentials so we can take a closer look.
Make sure to mark the reply as private.
ThanksJoao
June 29, 2016 at 1:05 pm #1065268
tats86ParticipantThis reply has been marked as private.June 29, 2016 at 2:38 pm #1065413
JoaoModeratorHi There
I have updated this:
.x-recent-posts a:hover .x-recent-posts-img { background: url(yourimage.png); background-size: cover; }to this:
.home .x-recent-posts a:hover .x-recent-posts-img { background-image : url(http://aimetamarque.com/wp-content/uploads/sites/2/2016/06/Aime-ta-marque-branding-personnel-png-500x500-e1467062378288.png) !important; background-size: cover; }And now it works fine.
You just need to put the complete URL of the image you would like to use instead.
Hope that helps
Joao
June 30, 2016 at 6:09 am #1066536
tats86ParticipantAwesome, it works now, thanks!
Now, can the same change be applied to the blog page? It only works on my homepage on the “recent posts section”. I’d like it to work there as well http://aimetamarque.com/blogue/
June 30, 2016 at 8:52 am #1066698
Paul RModeratorHi,
In that case, please change the code to this.
.blog .entry-featured a, .home .x-recent-posts a:hover .x-recent-posts-img { background-image : url(http://aimetamarque.com/wp-content/uploads/sites/2/2016/06/Aime-ta-marque-branding-personnel-png-500x500-e1467062378288.png) !important; background-size: cover; } .blog .entry-featured a:hover img { opacity:0; }Hope that helps.
June 30, 2016 at 1:43 pm #1067114
tats86ParticipantGreat! one last little thing though : remove the icon when hover over.
June 30, 2016 at 3:38 pm #1067291
JadeModeratorHi there,
Please use this code:
.entry-thumb:before { display: none; }Hope this helps.
July 1, 2016 at 1:54 pm #1068715
tats86ParticipantAwesome, thanks for all your help!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1064014 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
