WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme Editor change (8 posts)

  1. Beel
    Member
    Posted 9 years ago #

    Just a quickie - I may have missed something herein, but what do I need to change to get the theme files to show up in the Editor instead of "Oops, no such file exists!..." :?

  2. khaled
    Member
    Posted 9 years ago #

    Isn't it the code in the header?
    Check out this page,... http://codex.wordpress.org/Theme_Development

  3. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    Does it do that for all themes and all files, or just particular ones? Are you using symbolic links?

  4. kharris
    Member
    Posted 9 years ago #

    I just installed Kubrick rc2 for WP 1.3 and got essentially the same deal.
    I've got WP1.3A4 (CVS) from 11/18/04 installed in public_html.
    Kubrick is installed in public_html/wp-content/themes/kubrick.
    If I select "kubrick" from Presentation->Themes, I get the text
    "The active theme is Kubrick. The template files are located in wp-content/themes/kubrick. The stylesheet files are located in wp-content/themes/kubrick."
    So far, so good.
    When I go to "Theme Editor", I can select either "Default" or "Kubrick". Doesn't matter which one I select, I stull get
    "Oops, no such file exists! Double check the name and try again, merci."
    Que c'est fuque?

  5. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    Do you have the same problem with the plugin editor?

  6. kharris
    Member
    Posted 9 years ago #

    Okay, here's the fix...at least on my installation: At line 29 of "wp-admin/theme-editor.php", I modified
    $allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $allowed_files, $themes[$theme]['Template Files']);
    to
    $allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']);
    I now get a frame with the contents of "wp-content/themes/kubrick/style.css" and a selectable list of the theme's files over to the right.
    HtH,
    kevin

  7. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    Good catch. Fixed.

  8. flyingcat
    Member
    Posted 8 years ago #

    same problem to me.
    ----
    http://jesse.blogs-china.com/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags