WordPress页面教程:首页(index.php)

一、页面简介

index.php作为企业官网首页,用户进入的根页面  。用于将头部页面,尾部页面,内容页面,侧导航等页面引用进来。

 

二、页面参数

  • get_header()

  • get_template_part('content')

  • get_footer()

 

三、页面案例

<?php
    get_header()
?>

<?php
    get_template_part('content')
?>

<?php
    get_footer()
?>

 

THE END