Sign in

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

  • This topic has 1 reply, 1 voice, and was last updated 1 month, 1 week ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7661
    Andy

    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
    Andy

    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 🙂
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Hide specific tags from home page filter (Mercury, persona,etc.)’ is closed to new replies.