Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Hide specific tags from home page filter (Mercury, persona,etc.)

  • #7661
    Avatar photo[anonymous]

    Hi there,

    Can someone tell me how I can exclude certain tags from the home page filter?
    I don’t want to hide the entire tag via the option provided by Publii, I just want to remove some tags so that they don’t appear in the top menu.
    Maybe via the index.hbs? For example If tag = ID => do nothing?

    Thanks in advance 🙂

    #7674
    Avatar photo[anonymous]

    Find it ! 🙂

    For example in index and tag.hbs for person theme 🙂

    {{#checkIf id ‘!=’ “19” }}
    <ahref=”{{url}}”class=”filter__item invert”>{{name}}
    {{/checkIf}}
    Change 19 for the tag you don’t want to see 🙂