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.

Mercury Tags

  • #6626
    Avatar photo[anonymous]

    Hello,
    I am using the theme. When I click on a tag, I see the tag description displayed above the tag name.
    Eg: Tag: Film 8 mm – Jouets optiques (click-clack.fr)
    Is there a way to reverse the position of these two pieces of information?

    Thanks in advance!

    #6627
    Avatar photoBob

    You will need to edit the tag.hbs file ‎⁨(Documents ▸ ⁨Publii⁩ ▸ ⁨sites⁩ ▸ ⁨YOUR_SITE ▸ ⁨input⁩ ▸ ⁨themes⁩ ▸ ⁨YOUR_THEME) as follow:

    Change the following part of code:

    <div class="hero wrapper">
       <p>
          {{ translate 'tags.description' }}
       </p>
       <h1>
          {{ translate 'tags.tagsPageTitle' }}
          <sup>({{tagsNumber}})</sup>
       </h1>    
    </div>

    to:

    <div class="hero wrapper">
        <h1>
          {{ translate 'tags.tagsPageTitle' }}
          <sup>({{tagsNumber}})</sup>
       </h1>
       <p>
          {{ translate 'tags.description' }}
       </p>    
    </div>

    To preserve your custom code and prevent it being overwritten the next time the theme is updated, please ensure that you have created override files; these are, essentially, copies of the existing theme files that are stored separately from the main theme fileshttps://getpublii.com/dev/theme-overrides/

    #6628
    Avatar photo[anonymous]

    Many thanks for this clear and efficient answer !