• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

footer

Genesis Footer

July 25, 2020

Here’s how to display Copyright years in the footer section if you’re using the Genesis theme.

[footer_copyright first="2002"]

[footer_copyright first="2002"]

Result:

Copyright © 2002–2020

Copyright © 2002–2020

The current year is dynamic. It will display 2021 a year from now. The first year is always fixed.

Filed Under: WP Tagged With: copyright, custom, footer, genesis, wordpress, year

Dynamic Footer

January 12, 2015

Many web designers use Copyright followed by the current year on the bottom of their websites. It’s usually placed in the footer section of the page. If your site has been around for a while, spanning over several years, you’ll have to update your footer every time a new year comes along. If your site runs on PHP, you can make your footer a little bit more dynamic by using the PHP date function.

For example, you have a footer similar to this.

Copyright © 2010 - 2014. All rights reserved. yourdomain.com.

Copyright © 2010 - 2014. All rights reserved. yourdomain.com.

The result is:

Copyright © 2010 – 2014. All rights reserved. yourdomain.com.

You can make the current year dynamic by using the PHP date function as displayed below.

Copyright &#169; 2010 - <?php echo date('Y'); ?>. All rights reserved. yourdomain.com.

Copyright &#169; 2010 - <?php echo date('Y'); ?>. All rights reserved. yourdomain.com.

Most web hosting services have PHP turned on by default. Even if your website runs only in HTML, you can probably use the PHP date function. If you decide to do it, just make sure to change the file extension from .html to .php. And you’re good to go.

Filed Under: HTML, PHP Tagged With: copyright, date, dynamic, footer, year

  • Home
  • About
  • Archives

Copyright © 2023