We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Taxonomy navigation current

Demien Sokman December 5, 2020 by Demien Sokman

I have a taxonomy navigation and I want to mark the current taxonomy. I tried to use is_current but it does not work? Is there another attribute that I could use?

{{ taxonomy:publication_type collection="publications" }}
    <a class="block border-b border-gray-300 pt-4 pb-2 hover:text-primary-500 focus:text-primary-500 duration-200 ease-in-out{{ is_current ?= ' text-primary-500 border-primary-300' }}"
   href="{{ url }}">
    {{ menu_text }}
{{ /taxonomy:publication_type }}
Answered by Demien Sokman!
>>>>>>> Answered <<<<<<<
1 Reply
1 Follower