• I’ve installed WP and needed to get rid of the footer in the default theme

    Got rid of the footer and all OK
    But… then I looked at the website and there was a small smiley at the bottom!!

    Smiley: ??

    I looked at the code and couldn’t figure out what was causing it

    I got rid of <?php wp_footer(); ?>

    That did the trick

    I then googled for <?php wp_footer(); ?>
    There’s lots written about wp_footer()

    Is it important?

    Do I need it?

    Thanks

    OM

Viewing 5 replies - 1 through 5 (of 5 total)
  • wp_footer() executes ‘wp_footer’ action.
    The action includes wp_print_footer_scripts() by default
    and some plugins may add their actions to ‘wp_footer’ action.

    wp_print_footer_scripts() and plugin’s action output some javascript code. wp_footer() is not for the footer design in your page,
    but for some scripts.

    Thread Starter OM2

    (@om2)

    thanks for the reply
    ok, so maybe good to keep than get rid of?
    how do i get rid of the smiley?

    i just had a look at this: https://testbp.org/
    this has the smiley right at the bottom as well – why??

    WPSTATS output the smiley.
    Add below rule into your style.css.
    img#wpstats{display:none;}

    Thread Starter OM2

    (@om2)

    aaah… thank u ??
    is there a good reason why wpstats thought it was a good idea to have the smiley?

    Thread Starter OM2

    (@om2)

    hmmm… this smiley seems to appear in lots of places
    i’ve seen it on some reputable wp websites

    why is it there?
    weird

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Do I need <?php wp_footer(); ?> ?’ is closed to new replies.