Adding text before footer in wordpress

Posted by jake on Stack Overflow See other posts from Stack Overflow or by jake
Published on 2010-05-10T06:40:53Z Indexed on 2010/05/10 6:44 UTC
Read the original article Hit count: 353

Filed under:
|

I've been reading the wordpress codex and it seems that if I want to add some text just before the footer shows up I should use code like this in my functions.php

add_action('wp_footer', 'your_function');

function your_function() { $content = '

This is inserted at the bottom

'; echo $content; }

It is my understanding that the $content should show up just before the footer, but it does not show up at all. Is there another way to show up my code just before the footer ?

I am with WP 2.8 but this should not matter

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about footer