Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
Hi wpForo,
I think if you could help me with a little wish. I want two row-colors in the Recent Post widget.
Untill now I figure out that it most be in functions-template.php I have to add such row colours, even it would be perfect if could choose two hex row colours in the admin of the widget. But untill such functions in the widget, how can I do myself?
Thanks
KFJ1972
You can do it in CSS. Something along these lines (Where #000 is the colour you want as odd or even alternate)
#wpf-widget-recent-replies > div > ul > li:nth-child(odd) {
background-color: #000;
}
Thanks VereK for your answer,
But I'm not sure where and how to do it. I had been looking into some different CSS-files but without any luck.
I can see on your site in the sidebar that you shift between two different yellow colors. Same as I want on my site in the Recent Post widget, just some other colors.
What Sofy said. Also pro-tip; for consistency look at yoursite/recent which does the alternate colour listing by default, choose the same alt colour from there for your widget styling.