Adding text before footer in wordpress
- by jake
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