WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I change what wp_footer() displays? (7 posts)

  1. Greg
    Member
    Posted 5 years ago #

    In order to get the WordPress.com stats plugin to work, I realized I needed to execute the <?php wp_footer(); ?> in my footer.

    Except when I did, it displayed a bunch of crap I don't want down there in my footer.

    How do I execute this function but remove all the useless crap it displays about whatever plugins I might have installed, etc??

    Thank you,
    Greg

  2. Bobbeacham
    Member
    Posted 5 years ago #

    I'd like to see some help with this too. When I pasted the code into my footer I didn't get crap but the plug-in still didn't work.

    I'm getting the API failure loop that's been mentioned elsewhere.

  3. How do I execute this function but remove all the useless crap it displays about whatever plugins I might have installed, etc??

    Well, the wp_footer() is there so that plugins can display stuff there without modifying the theme's footer.php.

    What plugin are you using that displays "useless crap about whatever plugins I might have installed"? Disable that one and see if you get the stats code and not the rest that you don't want.

    I'm getting the API failure loop that's been mentioned elsewhere.

    Huh? Try adding it again. Do you still get those problems when you switch to the default theme? Sounds like wp_footer() was not added correctly.

  4. Greg
    Member
    Posted 5 years ago #

    What plugin are you using that displays "useless crap about whatever plugins I might have installed"? Disable that one and see if you get the stats code and not the rest that you don't want.

    Two of them - one is Spam Karma and the other one is PodPress. And instead of disabling them just for some footer, I'd rather just remove their ability to mess up my footer altogether... because I'd still like to use the plugins, just not have their "Powered by" junk text cluttering up my footer.

  5. elfin
    Moderator
    Posted 5 years ago #

    simple answer - then don't use those plugins.

    More complicated answer - options:
    1. Speak to the authors of those plugins to see if they'll make the 'powered by..' optional.
    2. hide with CSS
    3. delve into their scripts and edit out where they they add code to the footer.

  6. I've not used Spam Karma in an age and never used PodPress.

    You should be able to find in the plugins the text that adds that to the footer and just remove it. From my limited memory, I think Spam Karma has an option to add/not add that line to the footer.

  7. Tomcatt
    Member
    Posted 5 years ago #

    I often wonder why people that don't have an answer take the time to post. Really. If you don't have an answer, don't post.

    That having been said...
    For podpress go to line 402 or so in podpress.php and comment out the line that reads:
    echo '<div id="podPress_footer" style="display: '.$diplay.'; text-align: center;"><cite>'.__('Podcast Powered by ', 'podpress').'<a href="http://www.mightyseek.com/podpress/" title="podPress, '.__('the dream plugin for podcasting with WordPress', 'podpress').'"><strong>podPress (v'.PODPRESS_VERSION.')</strong></a></cite></div>';

    Save and upload. Done. You can also replace it with something else as I have done at lonelyastronomer.com.

    I haven't used Spam Karma so can't help with that.

Topic Closed

This topic has been closed to new replies.

About this Topic