Site icon Nabtron

Change thesis theme footer using custom hook

Thesis theme has a feature to edit many parts of the theme just by using custom hooks.

We can simple remove the previous hook and add a new one at the same place to have our custom code added there.

This tutorial explains how to add your own footer note to thesis 1.8 theme for wordpress by using thesis hooks without editing the core of the thesis framework.

We will be removing the text saying:

Get smart with the Thesis WordPress Theme from DIYthemes.

and replace it with:

© 2010 Nabtron.com – All rights reserved.

First goto custom file editor and open the file custom_functions.php to edit it.

In that file, simply add this code:

remove_action('thesis_hook_footer', 'thesis_attribution');
function add_custom_footer () {
?>
<p>© 2010 Nabtron.com – All rights reserved.</p>
<?php
}
add_action('thesis_hook_footer', 'add_custom_footer');

You can add any footer to the thesis footer hook to suit your needs while removing the default text.

Exit mobile version