admin管理员组文章数量:1126457
I have 2 blogs, both are versions 3.x
One of them, "Blog 1" is a multi-user blog. I can't edit the themes under Appearance->Editor , because it doesn't appear.
"Blog 2" is a single instance blog, and I can see the Appearance->Editor
What's the difference ? How do I get the editor to appear ? Could it be file permissions ? If so, which directory(ies) do I need to check ?
Thanks
I have 2 blogs, both are versions 3.x
One of them, "Blog 1" is a multi-user blog. I can't edit the themes under Appearance->Editor , because it doesn't appear.
"Blog 2" is a single instance blog, and I can see the Appearance->Editor
What's the difference ? How do I get the editor to appear ? Could it be file permissions ? If so, which directory(ies) do I need to check ?
Thanks
Share Improve this question asked Jun 26, 2014 at 22:56 jeph perrojeph perro 2215 silver badges13 bronze badges 6- 2 If the blog 1 is MU, then the editor is not available there by default. – тнє Sufi Commented Jun 26, 2014 at 22:59
- Yes, it was MU. How do I add it ? – jeph perro Commented Jun 26, 2014 at 23:00
- 2 You can't, without altering core. – тнє Sufi Commented Jun 26, 2014 at 23:03
- Any other way to allow my users to modify themes, without creating a linux/ftp account ? – jeph perro Commented Jun 26, 2014 at 23:20
- 1 If you want to allow users to change how their theme looks, use the theme customiser to give them options, or provide a setting with a CSS text area so that they can override styling like wordpress.com does. – Tom J Nowell ♦ Commented Jun 26, 2014 at 23:33
2 Answers
Reset to default 1The theme editor is not available on multisite installations. Changing this would require modifications to WordPress Core, that would need to be remade everytime you updated WordPress. I STRONGLY advise against this.
Also keep in mind that if one user edits a theme, everyone else using that theme gets the changes. There is only one copy. The editor also allows users to edit other themes, so users can modify other peoples sites on the network this way. It's also a massive security risk, a maintenance nightmare, and deprives you of future development work.
Instead I suggest you:
- Add theme options and settings for controlling the themes look
- Theme customiser options so that they have a nice UI to change things around, colours, text options, etc
- If they must add CSS, a setting with a text area like wordpress.com so that they can add CSS for the frontend. This way you can use some common javascript libraries to make editing the CSS much nicer than the editor you're trying to re-enable.
I'd also note that with the editor you desire, users can horribly break their websites. A single typo or error saved to functions.php
can cripple all websites in your install using that theme. The same thing can happen to the entire network if it happens in a plugin, bringing down the entire multisite installation.
In a WP MultiSite environment, your account needs to be a super-admin to be able to use the Theme Editor. Then navigate to My Sites > Network Admin > Themes. Then on the left side menu, you should see Theme File Editor under the themes menu (left side).
本文标签: Where did my Theme Editor go
版权声明:本文标题:Where did my Theme Editor go? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736686683a1947704.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论