• Resolved eckh20

    (@eckh20)


    Hi,

    I’m looking to put a copyright message in my footer through the Customize panel but I’m not sure how to set it up so that it automatically displays the current year. Anyone know how to do this please?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try

    &copy; <?php echo date("Y") ?>

    You may have to put it in footer.php or whatever php file contains the footer information.

    Thread Starter eckh20

    (@eckh20)

    Hi, thanks for that! If I put it in the footer.php it displays it fine, but outside of the footer area (above the footer and the footer widgets). Here’s the footer.php file code as it stands – can you tell me where I should put the code you provided please?

    </div>
    </div>

    <?php ttfmake_maybe_show_site_region( ‘footer’ ); ?>
    </div>

    <?php wp_footer(); ?>

    </body>
    </html>

    The footer files are found in the partials folder. You’ll want to look at footer-layout.php and footer-credit.php and decide the best place.

    If you’re moving it over to your child theme, just remember to keep the same structure (so create a partials folder in your child theme, and put the new footer files there.

    Hope that helps!

    Thread Starter eckh20

    (@eckh20)

    Thanks both for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Automatically display current year in footer’ is closed to new replies.