WordPress函数 get_sidebar() Error 404 – Not Found

鱼见海资源网最新教程:

介绍

主题边栏模板调用函数,可以调用一些特别的边栏”sidebar-special.php”,如这样。

参数

$name
(string) (Optional) The name of the specialised sidebar.
Default value: null

示例

调用你主题中 wp-content/yourTheme/sidebar-nice-bar.php 文件,可以使用

多个不同的边栏

首页显示 sidebar-home.php的内容,404页面显示 sidebar-404.php的内容,其他页面显示 sidebar.php的内容。

一个简单的404页面

Error 404 - Not Found

文章来源于互联网

© 版权声明
THE END
喜欢就支持一下吧
点赞397 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容