I like to have folders in my theme folder for scripts and styles, but I can't access these folders in the "Edit Themes" interface. This is problematic for clients that don't give me FTP access. Is there a way to see these folders and the files in them from the Wordpress admin section?
|
There is not a way to do this without modifying the core. You should see If you take a look at
The The second fetches all css files in the theme directory but it doesn't recursively go into subdirectories (notice the lack of the There's not much you can do about this; there is a conspicuous lack of any calls to And when PHP doesn't work, time to try the ugly JavaScript hacks! Unfortunately, that's no good either. I tried exploring adding files to the list via JavaScript and ajax, but clicking on a JS added file results in an error message due to function called |
|||
|
|
|
I do the same thing as you and organize things in folders. I never use that editor but I just took a look at one of my sites and I can see the files but not the directories. That is, the files are listed as present and are editable, but they are not displayed by directory. You can't tell what folder they are in unless you read the URL for the links. If you are talking about a child theme, I am having trouble seeing some of the files and I don't know why. The owner, group, and permissions match on the parent theme, whose files I can see, and the child theme, some of whose files I can't see. I'd never noticed the issue until this question came up. |
|||||
|
|
The Advanced Code Editor plugin provides this functionality. From the plugin description:
Edit: The plugin mentioned above doesn't seem to have the directory tree for themes; only plugins. There is, however, another plugin that does provide this functionallity: WPide From the plugin description:
There has also been a trac ticket on this topic; hopefully this will be fixed in a future version of WordPress. |
|||||||||||||||
|
|
This is not a problem for all users. Therefore, update to WordPress 3.4.x if you haven't already. Remember that css/style.css will alphabetically appear under 'c', but separated out under Styles at the bottom. If this doesn't work, try the same theme on a localhost install - if it works there it could be that their server doesn't allow recursive listing. |
|||
|
|
|
If a client won't or can't give you FTP access then you shouldn't be working for them. You could take the time it would take to hack the core and just find better clients. |
|||||||||||
|
|
I face the same problem almost every day with our WordPress customers. I use a plugin that allows you to edit all files of WordPress. But it is not safe for accounts on shared hosting (sometimes plugin allow edit any files on whole server). This plugin has been removed from wordpress.org (I think for security reasons) and the author's domain now expired. I've found small review here: http://www.themepremium.com/access-ftp-from-wordpress-dashboard-using-myftp-wordpress-plugin/ Below I'll post a link to a copy of the plugin. NOTE: I haven't any relations to the author of this plugin and have not modified it. I will not be held responsible for how you use the plugin. |
|||
|
|


theme editorfrom WordPress? You easily can create a custom page for showing such files, and add a visual editor (whatever you want) to that for coding as you like. – grosshat Nov 16 '12 at 8:07