Home › Forums › CSS › WordPress search output. › Re: WordPress search output.
October 28, 2011 at 11:08 am
#89829
Johnnyb
Member
Move the ending to after the last ‘endif’ in the code above and you should be golden.
You can then target each post by their id or class name eg: .search-results .post-69{
However if you ever deleted/rewrote a post it would have a different post number and therefore a different class, therefore it would be better practice to style them by category. Just give each post a category and then style them like so .search-results .category-resume{
.