• In the editor there is a list of files along with the name of the actual filename in small, italicized, grey text. I’ve made some mods to my WP theme and it involves adding new files, but the mods aren’t working and I think it’s because it doesn’t recognize that I’ve added the files needed.

    Basically, I see the files I added in the editor, but there is not small grey text to indicate that it sees the files.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    The italic grey text is if WordPress recognises it as a proper theme file.

    http://codex.wordpress.org/Template_Hierarchy

    All templates don’t necessarily have to have it, but it probably means you’re not letting WordPress know it’s available by putting this in the header:

    <?php
    /**
     * Template Name: Your template name
     */
    ?>
    Thread Starter rvankaam

    (@rvankaam)

    Thanks! That worked for the header.

    It did not work for the .css file I added though. Is there a declaration for that?

    Look at the top of the files of the other PHP or CSS files listed and use that as a template of sorts to include the information that WP requires to show the other files in the editor.

    See Page Templates

    See Child Themes

    Thread Starter rvankaam

    (@rvankaam)

    They seem to be the same. All I’m trying to do is get the sidebar nav to not show up on one of my pages. Maybe I shouldn’t be adding all these files. I thought I could add a new header and point that header to a different .css file (the .css file is an identical copy, but with the nav set to not display). I can’t figure out where I’m going wrong. It seems like this should be pretty simple.

    You can create a page template and apply it only to that page – in the template, remove the call to the sidebar…you may need to add some custom CSS to display this page as desired.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Cannot Get WP to Recognize Added Files’ is closed to new replies.