-
Author
-
August 12, 2013 at 21:29 #1283
ericaeide
ParticipantI’d like to change the theme’s recent post widget’s image to be the featured image, not author’s avatar. I’m thinking this is accomplished easily but looking for how to do it. Thanks.
August 13, 2013 at 08:31 #1303SQadmin
KeymasterHi,
In order to keep the main theme files intact you should add another widget that shows the post image instead of author.
Add this code to your sweetdate-child/functions.php
http://pastebin.com/C8CEuXvzHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 13, 2013 at 17:48 #1333ericaeide
ParticipantAwesome – thank you! Only issue is how should I make the featured images in the widget be square instead of round? The author images in the original widget are square (can’t remember if I tweaked something with css for in the admin panel).
August 14, 2013 at 07:21 #1361SQadmin
KeymasterThey should be the same since they have the same class and everything.
There is an site-wide option to switch that in Sweetdate -> Styling -> Use squared avatar imagesHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 21, 2013 at 22:41 #1651nicholaus1221
ParticipantThe widget works really well, is there a way to change the pink coloring around the circled image?
Thanks for your help,
NicholausAugust 22, 2013 at 11:27 #1661SQadmin
KeymasterHi, Add this to Sweetdate -> Styling -> Quck css to change the pink color on hover: .latest-blog span.avatar:hover {background:#HEX}
Replace HEX with your colorHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 22, 2013 at 21:29 #1684nicholaus1221
ParticipantThanks for getting back so quickly, I added .latest-blog span.avatar:hover {background:#FF9900} to the quick css and it’s still pink 🙁
Any ideas?
Thanks for the help,
NicholausAugust 23, 2013 at 11:36 #1711SQadmin
KeymasterHi,
Sorry, you are right you need to add also border: 3px solid #HEX
ex:
.latest-blog span.avatar:hover {background:#HEX;border: 3px solid #HEX}
What I gave you should take care of the circle when you are hovering it.
For the normal state add another one without the :hover, like this: .latest-blog span.avatar {}Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 23, 2013 at 18:05 #1739nicholaus1221
ParticipantThank you! It worked flawlessly. I really appreciate your swift replies and excellent service. I’ll be rating your theme 5+ stars!
Nicholaus
August 23, 2013 at 22:24 #1741SQadmin
KeymasterThank you. Rating does help
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.