Add Your Copyright to the Footer

May 29th, 2009

in Footer

Just the code please

Add this to custom_functions.php:

function copyright() {
		echo '<p>Copyright &copy; 2008&ndash;' . date('Y') . '</p>';
}
add_action('thesis_hook_footer', 'copyright', '99');

Note: The year that appears after the dash will always be the current year. In other words, it will update itself so you don’t have to worry about it every year.

1 Star2 Stars3 Stars4 Stars5 Stars (3) Loading ... Loading ...
Share and Enjoy:
  • email
  • del.icio.us
  • Facebook
  • Digg
  • FriendFeed
  • Twitter
  • StumbleUpon
  • Technorati
  • Reddit
  • Yahoo! Buzz
  • Noob
    Wondering where I'd find the custom functions php file, so I can open it? :)

    In Thesis it also says "Many WordPress customization tutorials suggest editing a theme’s functions.php file. In
    Thesis, you should instead edit the included custom/custom_functions.php file if you wish to make modifications."

    Awesome, but where is it? Noobs wanna know, LOL.

    Thanks for helpin' a brother out.
  • In this tutorial from
    Berchman<http://www.berchman.com/thesis-tutorial-multiple-custom-page-templates/>,
    read the section called *A Little Thesis Primer*. That should help.

    The whole path to custom_functions.php looks like this:
    *yourdomain.com/wp-content/themes/thesis_151/custom/custom_functions.php

    *If you downloaded the OpenHook plugin, you'll find that same
    custom_functions.php file by going to your *Dashboard > Appearance > Custom
    Programming.

    *You can access that file either of those 2 ways.*
    *
  • Hi, what is the purpose of '99' ?

    normally, I see only something like add_action('thesis_hook_footer', 'copyright');

    Thanks for sharing.
  • It inserts the current year. The code in this post will output:

    Copyright © 2008–2009
  • Hi Fabi,

    You might want to edit the code above to:

    function copyright() {
    echo 'Copyright © 2009–' . date('Y') . '';
    }
    add_action('thesis_hook_footer', 'copyright', '99');

    Otherwise, parts with "amp;lt;p&gt;" will cause the code to fail.
  • Thanks for pointing that out Lynn!
  • fussydude
    Hello Fabi
    Thank you for the quick reply
    Sorry I did not get back to you earlier, as you can tell this is a new site I am building.There is a video request though that might help people I know there is documentation some where but its just finding it.
    Anyway what about a vid showing how to wrap text around a picture/video. I think that's one of the major problems with WP in general
    Mel
  • fussydude
    WOW
    already done 3 actions in no time at all
    banner logo
    moved it below nav bar
    just done copyright

    U guys are A-W-E-S-O-M-E
    Thanks Mel
  • You made my day! I'm so glad the videos have helped you out. I have a list of topics I want to make videos on, but if you need one in particular let me know and I'll get it done!
blog comments powered by Disqus

Previous post:

Next post: