Footer.php

Discussion in 'WordPress' started by bluemanteam, Jun 20, 2008.

  1. #1
    In one of the wordpress themes I have, the footer.php file has the code

    <?php wp_footer(); ?>

    What does this code do? I was looking at all the files associated with this theme and there is no file called wp_footer

    Thank you
     
    bluemanteam, Jun 20, 2008 IP
  2. rebelagent

    rebelagent Well-Known Member

    Messages:
    876
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    165
    #2
    The footer is bottom part of the page and it is usually a static portion. Generally the copyright. I do believe it is a file and it just has the word footer or something with footer in it.

    Static meaning it doesn't change, or doesn't change often.
     
    rebelagent, Jun 20, 2008 IP
  3. Ikki

    Ikki Peon

    Messages:
    474
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #3
    wp_header() and wp_footer() tells your WP installation where should the plugins be placed at.

    While wp_footer() is optional, maybe the guy who coded this theme of yours added a few functions that needs to be executed once your page has fully loaded. I suggest you to leave it there or your theme may go wacko.
     
    Ikki, Jun 20, 2008 IP
  4. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #4
    the file should be in ../wp-themes/yourtheme/footer.php
     
    Pixelrage, Jun 20, 2008 IP