Archived topic
copyright icon custom footer with elements
7 replies · Started by Victor Valladolid on June 28, 2021
Hello,
I have a custom footer made with elements, now I have the current year {{current_year}}.
I tried to insert the copyright symbol {{% copy%}},% copy%, however the symbol is not displayed.
Site: https://mamaybuho.club/
Is it possible to show the symbol?
Thanks,
Hi Victor,
You can just paste the symbol as a symbol:
©{{current_year}}
Hi Ying,
There is no way to insert a code like in the footer of Customize, Design, Copyright.
Your suggestion works perfectly https://prnt.sc/17b2w4p
I just thought there was a way to do it another way.
Thanks,
Great!
You are welcome :)
Sorry to reopen this.
I want to add current year to an elements footer too, but don't know how to make {{current_year}} work ?
Is something else required for this to work ?
Tried Headline and Paragraph and code and html !
TIA, Dave
Hi there,
currently you need a shortcode for that.
Add this PHP Snippet to your site:
add_shortcode( 'current_year', 'lh_current_year' );
function lh_current_year() {
ob_start();
echo date('Y');
return ob_get_clean();
}
And then you can use [current_year]
Thanks David,
That is fine, I guess I was more interested in what the {{current_year}} was all about ?
Looks like template code, I thought maybe it was relying on Twig or something similar
TIA, Dave
Yeah its a template tag that was specifically coded into the footer copyright.