Functional tags in Lay Theme
-
Hi! Thanks for making Lay Theme, I use it for both my own portfolio and one I'm making now for a client.
The theme has Tags, but they don't really work. You can't make a thumbnail grid as with Categories.
For a photographer I'm making a site for, I really need both categories and tags. Categories is used for genre, and tags for topics. I've solved this by adding Tags as categories, but the mix is a little bit dirty, because of permalinks and ease-of-use for the client. See the screenshot.Is it possible to apply the same functionality to tags as categories?
Best, Jørgen
-
-
@mariusjopen I now found out this is more of an issue than I thought, because I have used some category specific css to style a certain category different. But when I add the "tags" that are in fact categories, the selector doesn't work anymore.
Is there any ways to make this selector target something that contains 5, so that it would be active even though data-catid is something like {5, 10, 11} ?
body.type-project[data-catid="[5]"] -
-
I'll need to create tag functionality one day. right now its not possible.
The css selector, yea i need to give the body classes that can be selected with css, like category slugs.Not sure when I'll have time to work on this
-
hey so with the new update, projects will have body classes like category-1 category-2 where the number is the id of the category
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it