[Resolved] Copyright info with Elementor

Home Forums Support Copyright info with Elementor

This topic contains 21 replies, has 6 voices, and was last updated by  David 3 days, 3 hours ago.

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #723098

    David Customer Support

    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?

    #723327

    Aitor

    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.

    #723331

    David Customer Support

    Can you provide me a link to the site?

    #723332

    Aitor
    #723345

    David Customer Support

    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

    #723596

    Aitor

    now, it works.
    thank you.

    #723643

    David Customer Support
Viewing 7 posts - 16 through 22 (of 22 total)

You must be logged in to reply to this topic.