-
Author
-
August 12, 2013 at 21:29 #1283ericaeideParticipant
I’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 #1303SQadminKeymasterHi,
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 #1333ericaeideParticipantAwesome – 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 #1361SQadminKeymasterThey 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 #1651nicholaus1221ParticipantThe 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 #1661SQadminKeymasterHi, 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 #1684nicholaus1221ParticipantThanks 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 #1711SQadminKeymasterHi,
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 #1739nicholaus1221ParticipantThank 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 #1741SQadminKeymasterThank 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.