How to Add Dynamic Year in Elementor & WP Themes Copyright Footer (Dynamic Year in WordPress)

When a new year begins, you wouldn’t want to login into over 20 of your websites just to update to the current year! This tutorial shows you how to add a dynamic year in elementor or set an automatic (current) year to your WordPress website using Elementor or in WordPress themes.

Note: the digits in brackets e.g. (00:02) indicate the minutes of that exact explanation in the video so you can easily jump to that section and follow along.

Video: Add Add Dynamic Year in Elementor Tutorial

There are two ways to display a dynamic current year on your website:

  1. If you have your copyright information with a year in the footer of your WordPress theme, for example, Astra; you can use a code snippet: [current_year] to display the current year.
  2. If your website has a footer section built using Elementor, you’ll have to add a dynamic condition with the current date & time.

Display Current Year Using a Code Snippet in WordPress Themes

When you go to the customizer of your theme in this case I’m using the Astra theme; go to the Footer section, under the Footer Bar, you’ll find that Astra automatically adds the [current_year] code for you (01:54), and your year will automatically update to current.

4vYZpb5xw6 Qc5V31JyPAMY2y4HiZFjAwhDrcL91fV6Wh d
E0cuDmAZKtsEvocc0rwe8xExiqWpGS4 MYcKxXWnL1TaWKELH UfgE2309j3udqeGqNPBkfBBETcL3I6dESOqhQleIYgFrua6JRBkDcVj3ljcjdGaJXnVOyjJFCVkozRAFn2wl0q

If you remove the [current_year] snippet from your customizer then publish and reload your page, the current year disappears (02:15)

k7uqSHBUwg31KsVevNolCntLi9fvi0ZuySYfyJ vi9 p25A0JfOMZtr5iBKt0hU9C3QWrlnOgEADAgcM1BdQuQDLVAmpxtnnx55uli nE0dvjpFA4A2PWvPMj1Cr8W1jXLjFCHzh

Note:

Not every theme will accept this code snippet to automatically update your year. For some themes that don’t support the [current_year] code snippet, you’ll have to add the current year manually.

Also Read: How to Edit Footer Copyright Credits in Astra WordPress Theme 😋

Add Dynamic Year in Elementor (Display Current Year Automatically) 

For this, you need to have an Elementor built footer section or any section built with Elementor where you would like to display the current year. Open it up with Elementor (02:43)

VJjpjpE 1LgNhASZMe2kFZJDMdOSFsm9VxXQQOM a1Ia9ZC7b9r

From your Widgets area, drag a Heading widget to your section (03:06)

6IXLzyNjbWxF3iKcVJvWQfMlj6S9i3bVSUCrd rb5ZfA jS9YcDM5dzLfjwSTH0OZfxm6HZWc9

Select your widget and in the Edit Heading section on the left, under Content > Title, click on Dynamic then scroll down and select Current Date Time under Site (03:19). The dynamic features only come in the pro version of Elementor.

BAlGvXBDdp fsfOoSIAl79WLGfPPE1YwxxptDQvLNxIPffIdgHkvJtRCMxPf16lF ASFs9bVJEu1Dyd1h5S6v ysJqhpA6Z2DNMmY8mkl1Sy8KzChj

Click on the spanner icon (🔧) to go to the current date-time settings, select Custom for the Date Format, then just add a ‘Y’ under Custom Format; to only display the year (03:47).

Add Dynamic Year in Elementor

Go to Advanced to set up the Before, After, and Fallback options.

For Before; we want to display a copyright symbol by either copying the symbol (©) and pasting it there, or by using the © code snippet.

For After; add the name you want to show after the year.

Then for the Fallback option, set up what you want to display when the before and after options arent showing, for this case I’ll add ‘Copyright 2020’ (05:00)

When you’re done setting this up, go to Style, under Typography set the Font to Montserrat, the Size to 12 pixels, Weight 300, and the Color to white.

Select the widget and back under Content > Title > Current date time settings (🔧), add a space after the Y on the Custom Format option, and also add a space after the © option (05:51)

Under Content > Title > Alignment, you can align it the right (or wherever you want).

VSqO4shNR5kTDfu rqObb 8pKsyd1CrutWdZIB3kGVUlCrThzqIUFP8DXzRgZPWQTTcKhRKjRLpU6Rm9VBX9UY1ahJcL6viAT cMJJY AunFOQCi JSo

When you’re done, click the Update button and then reload and preview your page.

Also Read: How to Create a Top Header and Below Header using Astra

In conclusion

That’s how you can set up a dynamic year/date in your footer and have it automatically update to your current year every time new year comes; using a code snippet in your WordPress theme, or via your Elementor editor.

If you have any questions or comments, let me know in the comments section below, and don’t forget to subscribe to my newsletter and youtube channel for more of these tips and tutorials.

Also Read. . .

How To Delete A Facebook Group in 2024?

Facebook allows for group interactions through its Facebook groups feature.  Facebook groups are created for specific reasons and attract like-minded people.  At some point, however, you may need to get rid of the group for

Read More »
Newsletter Subscription (EF)
Hamza
Hamza
Hamza comes from a design background with over 10years of experience in Web and Media design. He enjoys making web design videos on his YouTube channel GoTechUG. He also writes web design articles on this website. In his free time, Hamza loves riding a bicycle, swimming or going hiking.

2 thoughts on “How to Add Dynamic Year in Elementor & WP Themes Copyright Footer (Dynamic Year in WordPress)”

  1. Hi,

    I am using the free version of Elementor and there is no option for “dynamic”.
    In other webs without elementor I am using code and it just works fine, but I do not know how to do it with Elementor free version. Any idea?
    Thanks

    1. Hey Eltuyo,
      As I mentioned in the article and video, you need to have Elementor Pro to use the dynamic features (current date-time). Alternatively, you may opt for the first option suggested and use a theme like Astra.

Leave a Comment

Your email address will not be published. Required fields are marked *

Search

Recommended Tools

Hostinger offers premium WordPress hosting for small and medium size websites at an affordable price rated 4.5/5 on Trustpilot

Elementor is the WordPress most popular page builder with over 10 million active users