Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress search output. Re: WordPress search output.

#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{.