How to Include Different WordPress Footers

Set footer options for your WordPress theme to show a different footer image each time someone visits your page, just as other developers do with different header images. Modifying the WordPress footer file to change footer options requires only that you paste in code that's already been written, so you don't need to be a Web design expert in order to customize a WordPress blog in this manner.

Instructions

    • 1

      Log in to your site's control panel and access your WordPress directory. Click "wp-content," then choose "images." Create a folder called "footers." Upload any images you want to appear within the footer section of the Web page into this folder.

    • 2

      Sign in to the WordPress dashboard. Choose "Editor" from the "Appearance" tab and click the name of the "style.css" file to open and edit it.

    • 3

      Scroll down to the /*** Footer ***/ section of the stylesheet and paste in the following code:

      #footer {

      background: URL("/images/footers/rotate.php")

      no-repeat bottom center; }

      Save the CSS file.

    • 4

      Open "footer.php" and paste the following code anywhere within the document:

      <img src="/images/footers/rotate.php" alt="A Random Footer Image" />

      This code instructs the footer to display a random image from the footers folder whenever someone visits. Save the file.

    • 5

      Visit the blog in a new tab or window. Reload repeatedly to see the different footer images that appear.

Related Searches:

References

Comments

Related Ads

Featured