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?
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.