Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #563278

    Hi, I would like to add the code <?php echo date('Y'); ?> to the copyright in order to have the year updated automatically. Kindly advise where exactly to place this.
    Thanks.

    #563286

    Hi knoche9343!

    Please add following code to Functions.php file 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]

    Cheers!
    Yigit

    #563298

    Works like a charm! Thank you, Yirgit (and you are faster than lightning, too!)

    #563299

    Hi!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Automatic udating of year in copyright notice in socket’ is closed to new replies.