Hi,
I’d like to change the default footer in order to show some appreciation for our host.
I’ve looked at a previous thread here but I just can’t get the hang of it.
This is what I’ve got:
/*****
** Changing the default footer
*****
add_action ('catchbase_footer', 'remove_default_footer',99);
function remove_default_footer(){
remove_action( 'catchbase_footer', 'catchbase_footer_content');
}
*/
function catchbase_asf_footer_content() {
//catchbase_flush_transients();
if ( ( !$catchbase_asf_footer_content = get_transient( 'catchbase_asf_footer_content' ) ) ) {
echo '<!-- refreshing cache -->';
$catchbase_content = catchbase_get_content();
$catchbase_asf_footer_content = '
<div id="site-generator" class="two">
<div class="wrapper">
<div id="footer-left-content" class="copyright">' . $catchbase_content['left'] . '</div>
<div id="footer-right-content" class="powered">Works! ' . $catchbase_content['right'] . '</div>
</div><!-- .wrapper -->
</div><!-- #site-generator -->';
set_transient( 'catchbase_asf_footer_content', $catchbase_asf_footer_content, 86940 );
}
echo $catchbase_asf_footer_content;
}
add_action( 'catchbase_footer', 'catchbase_asf_footer_content', 101 );
It works in the respect that I get a new footer below the default, but I’d like to remove the default footer.
I guess it’s the remove_action part that fails 🙁
Any help appreciated!
/Kjell