How To Add Dynamic Copyright Year In WordPress Theme?
September 15th, 2016 | by Ravi Chahar || 5 Comments |
Do you want to add dynamic copyright year in WordPress theme? Does the theme of your website consist the code which let it change the year automatically?
If not, then you can allow your theme to do that just by adding a small code. WordPress is an amazing platform and you can do a lot of things using the PHP coding.
If you know about WordPress theme file structure then you would know that one of the most important files is the functions.php. You can add new features in your theme just by adding the codes in this file.
But as you know that the copyright text is shown in the footer area. So we are going to edit footer.php file.
Edit footer.php And Add Dynamic Copyright Year In WordPress Theme.
If you are tech savvy person then you won’t face any problem with the code. But if you are not so techie then no need to worry about. You just have to copy the code and paste it in the file.
There are many files consisting in the WordPress theme. You can edit the theme files using the cPanel or directly from the WordPress admin panel.
Just go to appearance>>editor and you would see all the files present in your WordPress theme. But if you are using Thesis themes then you won’t see the PHP coding of the theme.
Though there is an HTML box to add the copyright text but if you want to add dynamic copyright year in WordPress then you have to edit the footer.php file.
Add This Code To Add Dynamic Copyright Year In WordPress.
The code contains the name of your blog and then the year after that. Though you can change the date attribute but here we are talking about adding only the year.
This will output the copyright text as “©Blogname – Year”.
If you want to add anything extra then you can do that using the simple HTML. As if you are a developer then you can give the link of your profile or the website so that people can know that you have developed this theme.
Can You Now Add Dynamic Copyright Year In WordPress Theme?
When you start a blog then you choose the right WordPress theme which can let you give a design to your plain website. Then the setup comes into action.
If you are using a theme which doesn’t have the feature to add the copyright text then you have to add it manually. You just have to edit the footer.php file.
People don’t want to edit the theme files again and again. So they add dynamic copyright year in WordPress just once. You can embrace the text even more.
Hey Ravi,
Your website is your reflection to the online world. It’s responsible for the impression you want to give your audience. Some common mistakes can ruin your personality. An outdated copyright date is one of the common mistakes that most of the webmasters do.
WordPress has many plugins for displaying dynamic copyright date in our website. Often you will see a website that has an outdated copyright date which is pretty annoying. There are also sites that only show the current year for their copyright date which is even more annoying because you won’t know how old the site is. Again thanks for this informative post, You have shared great tricks of WordPress regarding its tools and features for a long time.
With best Wishes,
Amar kumar
Hi Amar,
You got it right that the website is the reflection of your reputation in this online world. If you can show the dynamic copyright text using the simple then why would you use any plugin?
An outdated copyright year shows an unprofessional website. You won’t like to put an impression which isn’t good. So it’s important to keep your website year up to date.
It’s not necessary that you should the year from the starting. The current year would do fine. It’s just the matter of choice.
Thanks for sharing your thoughts.
Have a great week.
~Ravi
Hello, Ravi!
That’s excellent of the tip you shared, buddy!
I have to do it all the time and all manually.
The dynamic is way too better because I have seen it unchanged for the very reputable blogs.
And that’s the first thing I see and get a feeling that the content can be questionable because of not keeping up with this small thing which is overlooked by many.
So, thank you for sharing this tip! I am surely gonna set it up for me!
~ Adeel
Hey Adeel,
Sometimes, people forget to change the year and it’s quite unprofessional.
So the solution is to use the code to display the dynamic year. It will keep changing automatically.
I am glad that you liked it.
Thanks for stopping by.
~Ravi
Hello, Ravi!
I did try to add that code with multiple tries but failed.
Not so sure why and what happpened as I don’t recall it at the moment but I’ll try adding it again and hopeful that it will work this time.
Will revert back to you on this. ?
~ Adeel