WordPress 中文文档
查看源码
出自WordPress Chinese 中文文档
对
Creating an Error 404 Page
的源码
跳转到:
导航
,
搜索
根据以下的原因,您并无权限去做编辑这个页面:
您刚才的请求只有这个用户组的用户才能使用:
操作员
您可以查看并复制此页面的源码:
==Creating an Error 404 Page== If your WordPress Theme does not include a template file named tt404.php/tt, you can create your own. Because every theme is different, there is no guarantee that copying over the tt404.php/tt template file found in the WordPress Default Theme will work, but it's a good place to start. The error page you copy from the Default Theme will adopt the style of the current theme because it actually calls the header and footer of the current theme. That's less work for you, and you may only have to edit the message to suit your particular needs. To use the tt404.php/tt template file from the WordPress Default Theme: # Copy the file tt/wp-content/themes/default/404.php/tt into the directory of your current theme. # Then, as described in the previous section, edit the error message to present your desired error message. If copying the default tt404.php/tt into your theme directory does not work well with your theme, you have some other choices: * Change the Default Theme's tt404.php/tt template file's header, sidebar, footer, and other codes to match the rest of the Theme's layout. Or * Copy the ttindex.php/tt file of your current theme to a file called tt404.php/tt. * Open that file and delete all sections dealing with posts or comments, see [[The Loop]]. * Then, edit your 404 error message.
返回到
Creating an Error 404 Page
。
查看
页面
讨论
查看源码
历史
用户
登录/创建账户
导航
首页
WP中文论坛
协作计划
等待翻译
随机页面
最近更改
网站动态
入门教程
WordPress
WP中文论坛
WP英文Wiki
WordPress下载
WordPress官方
WordPress MU
WP博客服务
搜索
工具箱
链入页面
链出更改
特殊页面