创建不一样的Page页

Page页面太单一?我们可以制作page的类似页面。 首先,把page.php复制一个 然后,把page.php重命名为name.php 。 接着,找到模板文件中调用 sidebar 的地方,去掉或者注释它 (建立没有sidebar的page) 或者,修改side...

Page页面太单一?我们可以制作page的类似页面。

首先,把page.php复制一个

然后,把page.php重命名为name.php 。

接着,找到模板文件中调用 sidebar 的地方,去掉或者注释它 (建立没有sidebar的page)

或者,修改sidebar.php,添加只有name.page才有的sidebar内容
<?php if(is_name()){ ?>
最后,在name.php中加入
<?php/*
Template Name: Bio
*/
?>

COMMENTS

名称

传销,1,代码,1,多说,1,海内,1,生活,29,汤圆,1,网络,8,相册,3,学习,3,音乐,1,银行,1,游戏,1,转载,27,blogger,2,Bluehost,1,php,1,swift,1,wordpress,3,
ltr
item
平凡梦想: 创建不一样的Page页
创建不一样的Page页
平凡梦想
https://blog.rechar.net/2007/10/page.html
https://blog.rechar.net/
https://blog.rechar.net/
https://blog.rechar.net/2007/10/page.html
true
6547323685510588419
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy