theme editor for wordpressmu
2010-09-26 16:17
281 查看
来源 :http://www.niftyeyeblog.com/wordpress-mu-theme-editor/
Hi all, I recently installed WordPress MU 2.8.4a to one of the social networks
I maintain, And wanted to do some changes in theme source code, so I
started looking for theme editor button in admin area, under appearance.
But the button wasn’t there. So I tried to use the direct link to the theme-editor.php
in order to access the theme editor function, instead I received an error “page disabled by administrator
.”
I tried to search online and seems like there are not that many good
suggestions. I looked at the code and if anyone would need to have The built-in Theme Editor
, they you will need to edit one (1) file only and you won’t need to upload or change anything else.
The file is “mu.php
” located under “/wp-admin/includes
” folder.
to edit from WordPress MU 2.8.1
:
Do the following changes
Search and locate
Then change to
Then locate
Change to
Refresh you admin page, and now you will find the editor button on Appearance admin menu.
Good luck, If you find this post useful, please share it with others,
if you have a suggestion or opinion, please leave me a comment, I’d
love to hear from you.
Hi all, I recently installed WordPress MU 2.8.4a to one of the social networks
I maintain, And wanted to do some changes in theme source code, so I
started looking for theme editor button in admin area, under appearance.
But the button wasn’t there. So I tried to use the direct link to the theme-editor.php
in order to access the theme editor function, instead I received an error “page disabled by administrator
.”
I tried to search online and seems like there are not that many good
suggestions. I looked at the code and if anyone would need to have The built-in Theme Editor
, they you will need to edit one (1) file only and you won’t need to upload or change anything else.
The file is “mu.php
” located under “/wp-admin/includes
” folder.
to edit from WordPress MU 2.8.1
:
Do the following changes
Search and locate
unset( $submenu['themes.php'][10] ); // always remove the themes editor
Then change to
// unset( $submenu['themes.php'][10] ); // always remove the themes editor
Then locate
if ( strpos( $_SERVER['PHP_SELF'], $page ) ) {
Change to
if ( strpos( $_SERVER['PHP_SELF'], $page ) && !is_site_admin() ) {
Refresh you admin page, and now you will find the editor button on Appearance admin menu.
Good luck, If you find this post useful, please share it with others,
if you have a suggestion or opinion, please leave me a comment, I’d
love to hear from you.
相关文章推荐
- Enable Theme and Plugin Editor on WordPress MU
- Missing styles. Is the correct theme chosen for this layout?
- visual studio no editoroptiondefinition export found for the given option nam
- Mac Theme for Google Reader
- Temporary Post Used For Theme Detection (366dde28-ee5a-4a1c-920a-afc2c4448f15 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)
- android预览界面出错,Missing styles. Is the correct theme chosen for this layout?
- Holo Dark TabWidget style for Holo Light Theme
- intellij idea android错误: Missing styles. Is the correct theme chosen for this layout?
- 安装wordpress storefront theme 出现FTP要求
- Temporary Post Used For Theme Detection (6aa56155-60c4-4577-b041-752f2a7c893a - 3bfe001a-32de-4114-a6b4-4005b770f6d7)
- Signing for requires a development team. Select a development team in the project editor. Code
- It is time for me to continue the contract with company
- Missing styles. Is the correct theme chosen for this layout?
- (转载)How to create a mobile WordPress theme with jQuery Mobile
- HOW TO ADD A NEW A WIDGET AREA TO YOUR WORDPRESS THEME
- Temporary Post Used For Theme Detection (9cf18042-6bf9-47f9-913d-d86dad90afd2 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)
- New For Me And/Or The World
- wordpress 自己制作子主题 child theme
- 真机调试出现Could not launch "FeedMeWorms" failed to get the task for process 3118
- set theme for fragment (ViewpagerIndicator Tab)