How to add current year footer.liquid of my theme.

Topic summary

A user wants to add a copyright notice to their Shopify theme’s footer.liquid file that automatically updates the current year, since their theme settings lack this functionality.

Original Problem:

  • Static copyright text shows “2013 - 2023” and requires manual yearly updates
  • User seeks a Liquid date object to dynamically display the current year

Solution Provided:
Replace the hardcoded year (2023) with Liquid code:

{{ "now" | date: '%Y' }}

This automatically outputs the current year without manual updates.

Follow-up Question:
Another user asks how to display a fixed original creation year (2024) instead of having it auto-update to the current year (2025). This question remains unanswered in the thread.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

Hi,

I am trying to directly add Copy Right notice in footer.liquid because the theme settings don’t offer any option to automatically update the year every year. Copy right notice below:

COPYRIGHT © 2013 - 2023 PERFECTMAKEUPMIRRORS.COM. ALL RIGHTS RESERVED.

My idea is to add the notice above directly in the footer code below. But I need help to add the current year in place of “2023” in the notice below. Is there any date object in LIQUID that I can use there?

<div class="{% if section.settings.show_payment %}text-left small--text-center{% else %}text-center{% endif %}">
          {%- comment -%}{{ section.settings.copyright_text }}          {%- endcomment -%}
				<p class="copy-right-text">COPYRIGHT © 2013 - 2023 PERFECTMAKEUPMIRRORS.COM. ALL RIGHTS RESERVED.</p>
          {% if section.settings.show_designby %}<span class="designBy">{% if section.settings.copyright_text != blank %}<br />{% endif %}Designed by <a href="https://www.adornthemes.com" target="_blank">AdornThemes</a></span>{% endif %}
        </div>
1 Like

Hi @pramodraam ,

Yes, there is a liquid code that you can use so you do not have to update it every year. I edited your code, please see below


          {%- comment -%}{{ section.settings.copyright_text }}          {%- endcomment -%}
				

COPYRIGHT © 2013 - {{  "now" | date: '%Y' }} PERFECTMAKEUPMIRRORS.COM. ALL RIGHTS RESERVED.

          {% if section.settings.show_designby %}{% if section.settings.copyright_text != blank %}
{% endif %}Designed by [AdornThemes](https://www.adornthemes.com){% endif %}
        

I changed the 2023 to the code below

{{  "now" | date: '%Y' }}

What if I want to keep it as the original year it was created but it is automatically updating to the current year? How do I revert to 2024 if it now says 2025?