Tagged: 

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

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

    #1364041

    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

    
    [year]
    

    Regards,
    Yigit

    #1364099

    It works! Thanks.

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

    #1364111

    Hi,

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

    Best regards,
    Rikard

    #1364121

    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.

    #1364126

    Hi,

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

    Best regards,
    Rikard

    #1364147

    Okay, got it. You can close the thread.

    #1364166

    Hi,

    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,
    Ismael

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