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. Kenn
    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

We highly encourage you to post problematic HTML/CSS/JavaScript over on CodePen and include the link in your post. It's much easier to see, understand, and help with when you do that.

Markdown is supported, so you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences like this:

  function example() {
    element.innerHTML = "<div>code</div>";

We have a pretty good* newsletter.