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 ..