WordPress: Add dynamic footer copyright text with links

Do you want to add a copyright link in the footer of your WordPress website? You can edit the footer.php file of the theme and add the text by wrapping it within a paragraph, division or span HTML tag. However, it will be a static text. You can add an auto-updating footer text with year that can be used for any website.

Paste the following code in the footer section of your theme.

<p><a href="<?php echo home_url('/'); ?>"><?php echo get_bloginfo('name'); ?></a> - <?php echo get_bloginfo('description'); ?></p>
<p>Copyright &copy; 2012 - <?php echo date('Y'); ?></p>

Premium WordPress Themes

Reliable Web Hosting

Smart Web Worker strongly recommends HostGator for your website/blog hosting. Sign up for web hosting at just $3.96/month. Use the coupon code "SMARTBLOGGER25" to get 25% discount on any hosting packages. Get an account with HostGator now!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>