1. Under Wp-content/themes, create a directory Themedemo to be developed and create it in the Themedemo directory
comments.php: Used to manage how comments are displayed. footer.php: Used to manage the page footer. header.php: Used to manage page headers for each page. index.php: The log display layout used to manage the home page. search.php: Used to display the search form. sidebar.php: Used to manage sidebar.
Create a CSS directory, and in the CSS directory
Style.css:WordPress the main CSS file
Create images directory: Some wordpress themes can store the pictures they need here
2. Modifying CSS Paths
<link rel= "stylesheet" href= "<?php Echo bloginfo (' Stylesheet_url ');?>" type= "text/css" media= "screen"/>
WP functions
Bloginfo (' Pingback_url '): Output is the absolute URL of your theme CSS file, such as Http://localhost/wp/wp-content/themes/Aurelius/style.css
3. Modify the blog name and description
<H1 id= "logo" class= "grid_4" ><a href= "<?php Echo get_option (' home ');? >/" ><?php bloginfo (' name ') ;? ></a>WP functions
Get_option (' home '): Output your blog home url bloginfo (' name '): Output your blog name bloginfo (' description '): Output Blog Description
4. Modify the Display menu page
<!--menu Page--><ul id= "navigation" class= "Grid_8" ><?php wp_list_pages (' Depth=1&title_li=0&sort _column=menu_order '); ><li <?php if (Is_home ()) {echo ' class= ' current ';}?>> <a title= ' <?php blog Info (' name ');?> " href=" <?php Echo get_option (' home ');? >/"> Home </a></li></ul>
WP functions
Is_home (): Judging whether the homepage is the first page
Wp_list_categories (): Used to list blog category pages
Wp_list_pages (): Used to list blog pages
1.header Page Modification