Wordpress 管理员页面中未显示模板下拉菜单 [英] Template Dropdown not showing up within Wordpress administrator page

查看:36
本文介绍了Wordpress 管理员页面中未显示模板下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个基于 Wordpress 的项目,我刚刚通过上传模板文件向安装添加了一个新模板.我正在创建一个将使用我的新模板的新页面,突然,页面属性"框中的模板"下拉列表消失了.

I am working on a Wordpress-based project, and I just added a new template to the installation by uploading a template file. I was creating a new page that will use my new template, when suddenly, the "Template" dropdown in the "Page Attributes" box is gone.

我使用的是 Wordpress 3.0.1.

I am using Wordpress 3.0.1.

更新:我看到一个网站告诉我要恢复到默认模板,并返回到我的自定义模板.显然它有效,但我仍然对触发此错误的原因感到困惑.此外,有关此错误的任何其他知识或指示都会有很大帮助,因为我的工作需要我对此进行修补(并可能将错误修复提交给 Wordpress).谢谢!

Update: I saw a site which told me to revert to the default template, and back to my custom template. Apparently it worked, but I am still baffled on what triggers this bug. Also, any additional knowledge or pointers on this bug would be a great help since my job requires me to patch this (and possibly submit the bug fix to Wordpress). Thanks!

推荐答案

如果您已禁用或从模板目录中删除了 style.css,那么它也将无法工作.

If you have disabled or removed the style.css from the template directory then also it will not work.

所以模板目录中必须有style.css,然后模板目录将被显示.当您尝试从模板目录中删除 style.css 或使用 css 文件夹中的 style.css 时,您必须将一个 style.css 放在模板目录中.

So there must be the style.css on template directory then the templates directory will be shown. When you try to remove the style.css from the template directory or using style.css from css folder, then you must be put one style.css on template directory.

谢谢

这篇关于Wordpress 管理员页面中未显示模板下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆