|
Post by mimjannat on Jan 13, 2024 3:37:13 GMT
Listed below are steps to follow to update the copyright Year. For PHP The PHP script executes from the serverside. Note that this would lead to additional processing during the loading of your page. Go to WordPress Dashboard. Select Appearance Editor Menu to edit the active theme. On the rightside select Theme Footer to open the footer.php file. Add the PHP code to get the current date as shown in below. Auto Update Copyright Year html websites Click Update File and reload page to view changes. Auto Update Copyright Year website For JavaScript The JavaScript code is run on the client side after the page has loaded. To update the copyright year automatically add the below code to the WordPress theme footer. Go to WordPress C Level Email List Dashboard. Select Appearance Editor Menu to edit the active theme. On the rightside select Theme Footer to open the footer.php file. Add the JavaScript code to get the current date as shown in Figure. Auto Update Copyright Year javascript code Click Update File and reload page to view changes. Auto Update Copyright Year javascript wordpress website Auto Update Copyright Year in a Website Using WordPress Plugins For beginners or anyone who is not knowledgeable and has no skills in PHP programming using plugins can be a better option to update the copyright year. The scripting methods require manual addition of copyright update code to the footer file.
|
|