Wordpress topic creation tutorial (7): create the bottom file-footer. php

Source: Internet
Author: User
In the previous tutorial (5), we put the header code common to all template files in one file (header. php), in the same way, our bottom information, such as the copyright statement, is basically shared by all pages.

In the previous tutorial (5), we put the header code common to all template files in one file (header. php), in the same way, our bottom information, such as the copyright statement, is basically shared by all pages, so we also extract this part of code and put it in a separate PHP file.

Create a footer. php file in the content \ themes \ Aurelius folder.

Open the index. php file in the editor and run the following code:

 

      

Design By QwibbleDesigns      Code By Ludou top

 

Cut and paste it into footer. php. after cutting the code, we need to load this footer. php and add the code at the end of the index. php file:

 

 

Corresponds to the get_header () function, which loads the footer. php file in the topic folder.
Next, we will change the corresponding code in archive. php, contact. php, full_width.php, page. php, and single. php.

Next, modify the footer. php file and replace the code in it:

 

 

      

Copyright©2010 | Powered By WordPress | Design By QwibbleDesigns | Code By Ludou top

Here we use the bloginfo ('name') function we learned last time to output your blog title. wp_footer () is similar to wp_head (), which is used to improve the compatibility of your topic, after all, many plug-ins need to output something in the footer to work properly. Now, your footer should have a pattern.

Okay, the code in the footer. php file can be used freely .. Free modification ..

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.