1.2.2 提问:谈谈 WordPress 主题模板中常⽤的页⾯模板⽂件有哪些,以及各⾃的作⽤。
WordPress 主题模板中常⽤的页⾯模板⽂件
1. header.php作⽤:⽤于显⽰⽹站的页眉部分,包括标题、标语等。
2. footer.php作⽤:⽤于显⽰⽹站的页脚部分,通常包含版权信息、页尾菜单等。
3. index.php作⽤:是WordPress主题中默认的博客主页模板,显⽰最新的博客⽂章列表。
4. single.php作⽤:⽤于显⽰单篇博客⽂章的模板,包括⽂章标题、内容、作者信息等。
5. page.php作⽤:⽤于显⽰单页(页⾯)的模板,通常⽤于显⽰固定内容页⾯,如关于页⾯、联系页⾯等。⽰例:
Welcome to My Site
10 Screens$8,029
I will design rough sketches for upto 5 Screens of your website/Mobile app.
3 Days
Delivery
1
Revision
- Source File
- Commercial Use
- Interactive Mockup
- 10 Pages
20 Screens$16,029
I will design rough sketches for upto 5 Screens of your website/Mobile app.
- Source File
- Commercial Use
- Interactive Mockup
- 10 Pages
30 Screens$24,029
I will design rough sketches for upto 5 Screens of your website/Mobile app.
- Source File
- Commercial Use
- Interactive Mockup
- 10 Pages