• Resolved Greg

    (@grinc)


    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    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.

    Thread Starter Greg

    (@grinc)

    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.

    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.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    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.

    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="https://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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I change what wp_footer() displays?’ is closed to new replies.