Site logo

[Support request] How to add a current year tag to the footer

Home Forums Support [Support request] How to add a current year tag to the footer

Home Forums Support How to add a current year tag to the footer

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2235233
    Christophe

    Hi,

    I’m trying to add a {{current_year}} in my footer Element.
    I thought it was as simple as typing {{current_year}} in the dedicated block but all i get is:

    http://skravik.alambic.bzh/

    How can i fix it pls ?

    #2235451
    David
    Staff
    Customer Support

    Hi there,

    is the Block Element > Element Type set to: Site Footer ?

    #2235463
    Christophe

    Nop, it’s set like this:

    Type: Hook
    Hook Name: footer

    #2235666
    Leo
    Staff
    Customer Support

    Can you try David’s suggestion then?

    Here is the reference article:
    https://docs.generatepress.com/article/block-element-site-footer/

    #2238366
    Christophe

    Done. Worked like a charm.

    Why the tags are not working for all element types ? (just to know)

    Cheers,

    #2238418
    Leo
    Staff
    Customer Support

    Because the year is usually not needed for other element types.

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