Sign in

Mercury Tags

  • This topic has 2 replies, 2 voices, and was last updated 1 month, 2 weeks ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6626
    clac1

    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
    Bob

    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/

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #6628
    clac1

    Many thanks for this clear and efficient answer !

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Mercury Tags’ is closed to new replies.