1.header Page Modification

Source: Internet
Author: User

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

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.