Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1116640

    Hi everyone, I tried to insert in my functions.php this code

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

    and I add following shortcode in Enfold theme options > Footer > Copyright field
    [year]
    but it doesn’t work.
    what appears is [year]
    I give a moderator the administrator credentials to understand the reason and eventually solve it.
    Thanks in advance

    #1117212

    Hey Giuseppe,

    can you make sure you copy and paste the [year] without any extra stuff around it?

    Best regards,
    Basilis

    #1117224

    Hey Basilis,
    I’m sure, you can try it yourself.
    I sent you the administrator’s credentials, insert the first code in functions.php of the child theme
    Best regards,
    Giuseppe

    #1117332

    I would like to specify that I have a copy of the site locally on xampp and there it works
    Best regards,
    Giuseppe

    #1117353

    You can close the thread, I’ve solved.
    Best regards,
    Giuseppe

    #1117451

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to Add a Dynamic Copyright Date in Enfold socket’ is closed to new replies.