I had the same issue so I did what you said. It worked but with some problems you maybe can help me with:
The icons before the category name and tag name are not displayed (And I would like them to be)
The categories and tags are still displayed at the bottom of the post / archive (and I wish they wont)
These issues occur in both archive and post
Any idea how to fix this?
I added tags in your suggested code as I only need Categories and tags displayed. It is worth noting that if you keep the date and author in the code, category and tags wont show up if you decide not to activate date or author on the customized layout. So if you only want categories and tags displayed code should be: