Shop Categories

X

Current year in Copyright field of Footer

Home Forums Agama Pro Current year in Copyright field of Footer

Topic Resolution: Resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6744
    mieg62
    Participant

    I would like to add a Copyright statement in the Footer e.g. like this: “Copyright 2012 – 2017”.
    The year 2017 should be automatically updated to 2018 in the year 2018, 2019 in 2019 and so on.
    Using the php-Code <?php echo date(“Y”); ?> is not working in this field.

    How can i manage this? Thanks a lot for your help!

    #6746
    Zex
    Moderator

    Hello, miege62!

    This can be done with the simple editing theme file.
    Follow the steps below:

    1. Go to: Dashboard->Appearance.
    2. Open Editor
    3. On the right side find “Theme Footer” file. Click on it to edit them.
    4. In the main window, scroll down to the “<!– Footer Start –>” line.
    paste your copyright code :Michael Egger © 2012 – <?php echo date('Y'); ?>

    below the “<?php do_action(‘agama_credits’); ?>” line.

    5. Update File.

    https://prnt.sc/hank0r

    Now your copyright area should be like this:
    https://prnt.sc/hann6m

    Regards

    #6749
    mieg62
    Participant

    Hello Zex,

    thanks a lot for the quick answer, your solution works perfect!

    Since I’m using the Child theme I have first copied the “footer.php” of Agama Pro to Agama Pro Child and then followed your steps and doing the changes in the “footer.php” of the Child Theme.

    Thanks again,
    Michael

    #6750
    Zex
    Moderator

    Hello Michael,

    I’m glad to help you.

    Yes, is always better to use child-theme.

    Best Regards

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