Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #1364025

    How do I add the year (4 digits) which updates itself every year?
    Can I have the code? Thanks.


    Hi Samuel,

    Thanks for contacting us!

    Please add following code to Functions.php file of your child theme in Appearance > Editor

    function year_shortcode() {
    	$year = date('Y');
    	return $year;
    add_shortcode('year', 'year_shortcode');

    then add following shortcode in Enfold theme options > Footer > Copyright field




    It works! Thanks.

    When WordPress update to a new version, will the code still be there? Or do I have to add it again?



    If you are running a child theme, then it won’t be overwritten during theme updates.

    Best regards,


    I’m not running a child theme, what can I do about it? Instead of having to add the code each time I update WordPress.



    That is exactly what a child theme is for, you should install a child theme.

    Best regards,


    Okay, got it. You can close the thread.



    Alright! Please feel free to open another thread if you have more questions about the theme. We will close this one for now.

    Have a nice day.

    Best regards,

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Footer Custom Copyright Text’ is closed to new replies.