Okay
  Public Ticket #2412836
Variable copyright year in footer
Closed

Comments

  • CarlWilhelm started the conversation

    Hi.

    I have tried making a custom shortcode to have the year in my copyright at the footer change automatically.

    I added "include('custom-shortcodes.php');" in the functions.php file of the child theme, and made a file with custom shortcode (Se screenshot).

    When i add [copyrightyear] in the footer, it does not change, but it works on a page text.

    Can you enable the usage of shortcodes in the main theme, so i do not have to modify it with every update?

    Thank you.


  •  675
    Neuron replied

    Hi Carl,

    There's a quicker solution for that, you can create a footer template and assign it for all pages.

    Go to Saved Templates > Footer and create a new template.

    You can add is a shortcode element. https://prnt.sc/sm234b

    Then you can assign it in Appearance > Customize > Footer > General.

    - https://prnt.sc/sm26yq

    Feel free to ask for anything you need.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.