Archived topic
Copyright info with Elementor
21 replies · Started by Dave on April 22, 2018
Hi there,
parent (father) themes function.php should not be edited as the code will get removed when the theme updates. How are you adding the shortcode to the page? Is it using an Elementor Shortcode Widget?
hi,
i am a bit lost, i have an own footer with footer header builder. i activated generatepress child theme
i modified in child theme functions.php with this. the footer has a line with this "encabezado" Copyright © [get_the_year] Clinica veterinaria ZAUNKA. it works in the
add_shortcode( ‘get_the_year’, ‘tu_get_the_year’ );
function tu_get_the_year() {
return date( ‘Y’ );
the footer has a line with this "encabezado" Copyright © [get_the_year] Clinica veterinaria ZAUNKA. it works in the footer preview "Copyright © 2018 Clinica veterinaria ZAUNKA"
but not in the static page.
i am not using widget of "footer".
thank you.
Can you provide me a link to the site?
so check your code is correct - this i have tested:
add_shortcode( 'get_the_year', 'tu_get_the_year' );
function tu_get_the_year() {
return date( 'Y' );
}
Then use a Text widget, use the Text editor option to add your content and shortcode inside <h2>text and shortcode in here</h2> tags
now, it works.
thank you.
glad to be of help