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
Hey Giuseppe,
can you make sure you copy and paste the [year] without any extra stuff around it?
Best regards,
Basilis
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
I would like to specify that I have a copy of the site locally on xampp and there it works
Best regards,
Giuseppe
You can close the thread, I’ve solved.
Best regards,
Giuseppe
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon