WordPress 中文文档
查看源码
出自WordPress Chinese 中文文档
对
Creating an Error 404 Page
的源码
跳转到:
导航
,
搜索
根据以下的原因,您并无权限去做编辑这个页面:
您刚才的请求只有这个用户组的用户才能使用:
操作员
您可以查看并复制此页面的源码:
==Editing an Error 404 Page== The default WordPress theme has a 404.php file, but not all Themes have their own custom 404 error template file. If they do, it will be named tt404.php/tt. WordPress will automatically use that page if a Page Not Found error occurs. The normal 404.php page shipped with your Theme will work, but does it say what you want it to say, and does it offer the kind of help you want it to offer? If the answer is no, you will want to customize the message in the template file. To edit your Theme's 404 error template file: # Open your WordPress admin panel: # Choose Design menu. (Presentation pre 2.5) # Choose the Theme Editor page. # Check to see if your theme includes a '404 Template' in the list of files. # Click the link for '404 template' along the right side of the page. # Edit the message text to say what you want it to say. # Save your changes. (If the template file is not writable, see [[Changing_File_Permissions|Changing File Permissions]].) While you are examining and editing your 404 template file, take a look at the simple structure of the default tt404.php/tt file. It basically features tags that display the header, sidebar, and footer, and also an area for your message: pre?php get_header(); ? div id=content class=narrowcolumn h2 class=centerError 404 - Not Found/h2 /div ?php get_sidebar(); ? ?php get_footer(); ?/pre So, to change the error message your visitor sees, revise the text within the '''h2''' heading and if necessary, add more paragraphs below that.
返回到
Creating an Error 404 Page
。
查看
页面
讨论
查看源码
历史
用户
登录/创建账户
导航
首页
WP中文论坛
协作计划
等待翻译
随机页面
最近更改
网站动态
入门教程
WordPress
WP中文论坛
WP英文Wiki
WordPress下载
WordPress官方
WordPress MU
WP博客服务
搜索
工具箱
链入页面
链出更改
特殊页面