Home › Forums › WoodMart support forum › Display Current Year in Footer Display Current Year in Footer This topic has 5 replies, 2 voices, and was last updated 7 months, 1 week ago by Aizaz Imtiaz Awan. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts November 11, 2019 at 1:06 pm #156300 sbwcwsParticipant Hello – How can I dynamically show current year in footer, So I dont have to change it every year manually ©2019 My Company . November 11, 2019 at 2:15 pm #156319 Aizaz Imtiaz AwanKeymaster Hello, Unfortunately there is no such option in the theme to use dynamic copyright. You can read and follow the below article that might help you out: https://www.wpbeginner.com/wp-tutorials/how-to-add-a-dynamic-copyright-date-in-wordpress-footer/ Best Regards. December 30, 2019 at 2:33 pm #165606 sbwcwsParticipant There is a way to do this as mentioned here as your above method just don’t work. https://www.sohaib.com/how-to-add-year-which-changes-dynamically-in-woocommerce-or-wordpress/ December 31, 2019 at 6:29 am #165688 Aizaz Imtiaz AwanKeymaster Hello, To display the dynamic year in footer you can use the below code in function.php : function year_shortcode() { $year = date('Y'); return $year; } add_shortcode('year', 'year_shortcode'); After placing the above code you have to use this short code “[year]” inside “Copyrights text” area, under theme settings >> Footer. Screenshot for clarification: https://jmp.sh/sUKHtFb I have tested this code on my test site and it works just perfectly fine on my test site. Best Regards. June 4, 2024 at 11:53 am #570487 dynamo-modelsParticipant Thanks for this tips guys, it works perfecctly for me. One question : it is not possible to add this code in the functions.php of the child theme. So does the code stay after a Woodmart theme update ? Thanks, June 4, 2024 at 1:52 pm #570531 Aizaz Imtiaz AwanKeymaster Hello, Yes, you can add the code to the functions.php of the child theme. This way, the code will stay intact even after a Woodmart theme update. Best Regards. Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to create new topics. Login / Register