This will be about the simplest footer ever on a site. It will be a copyright symbol with Jeff's name (It's always nice, I think, to have the name of the site in the footer in plain text for easy copy-and-paste) and social media links. The year will auto update so it never looks out of date.

<footer class="site-footer">
  &copy;<?php echo date('Y'); ?> Jeff Campana


  <a href="">Facebook</a>


  <a href="">Twitter</a>


This goes in the footer.php file that gets included on every page of the site. This file is also useful for closing up any lingering open tags (e.g. if we opened any in header.php) and analytics scripts.


  1. User Avatar
    Permalink to comment#

    Hi Chris, I’ve started using this PHP snippet, a truly use and forget copyright :)

    &copy; Copyright <?php
    $then = 2007;
    $now = date('Y');
    if ($then == $now)
    echo $now;
    echo "$then - $now"; ?>

Leave a Comment

Posting Code!

You may write comments in Markdown. This makes code easy to post, as you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences (```) with double new lines before and after.

Code of Conduct

Absolutely anyone is welcome to submit a comment here. But not all comments will be posted. Think of it like writing a letter to the editor. All submitted comments will be read, but not all published. Published comments will be on-topic, helpful, and further the discussion or debate.

Want to tell us something privately?

Feel free to use our contact form. That's a great place to let us know about typos or anything off-topic.