[Resolved] copyright icon custom footer with elements

Home Forums Support [Resolved] copyright icon custom footer with elements

Home Forums Support copyright icon custom footer with elements

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1837696
    Victor Valladolid

    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.

    https://prnt.sc/17b0p8p

    Site: https://mamaybuho.club/

    Is it possible to show the symbol?

    Thanks,

    #1837702
    Ying
    Staff
    Customer Support

    Hi Victor,

    You can just paste the symbol as a symbol:
    ©{{current_year}}

    #1837712
    Victor Valladolid

    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,

    #1837736
    Ying
    Staff
    Customer Support

    Great!

    You are welcome 🙂

    #1847295
    David

    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

    #1847394
    David
    Staff
    Customer Support

    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]

    #1847469
    David

    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

    #1847551
    David
    Staff
    Customer Support

    Yeah its a template tag that was specifically coded into the footer copyright.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.