• Resolved basketball

    (@basketball)


    This maybe kind of an odd question but I was just wondering if there was a way I could specify names for each file that’s in the file editor for a theme. You know when you go into the theme-editor through the admin panel, on the right side you have the theme name, then all the files underneath of it. Well the files that comes with the theme most of the times instead of having index.php Main Template is displayed, and instead of style.css, Stylesheet is displayed. I am just wondering what controls these names.

    The reason I am asking is because on my site I ended up with 22 of these links for my theme and when trying to find a file it gets kind of confusing. If I could change the names I could number them 1., 2. and organize them by how they appear on my page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avenir

    (@avenir)

    There are only names for the core WordPress theme files as listed in the Themes section of the Codex. I don’t know if there’s any way to modify what names are shown or add more names, whether through a plugin or otherwise. It would probably involve directly changing the core files, but I couldn’t even begin to tell you where to look.

    Kafkaesqui

    (@kafkaesqui)

    Look in wp-admin/admin-functions.php for the variable array $wp_file_descriptions (around line 880). You can delete this array, or rename any of the values (i.e. text on the right of =>).

    Back up any sources files before editing, and comment your changes for future reference.

    Thread Starter basketball

    (@basketball)

    Ahhh Excellent, thanks Kafkaesqui. Just one more question, is there a way I can output those files in alphabetical order?

    Kafkaesqui

    (@kafkaesqui)

    In case any future readers wonder at that last one:

    http://wordpress.org/support/topic.php?id=29914#post-168986

    (Might as well get points for answering your own query, bb.)

    Thread Starter basketball

    (@basketball)

    Lol thanks Kafkaesqui, and now over a year later I was trying to do the same thing and found this thread through google =P

    Lol thanks Kafkaesqui, and now over a year later I was trying to do the same thing and found this thread through google =P

    [claps hands]..Bravo! Bravo! Give this man an award for searching!.. Hahaha..nah, just kidding lol, but..I’m glad to hear you searched, and found your answer.. =)

    spencerp

    Jesus, I need to get to sleep..I’m getting into one of my korny, weird ass moods again lol!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Question about theme-editor (Assigning Names)’ is closed to new replies.