WordPress.org

Ready to get started?Download WordPress

Forums

Index file in /img dir (3 posts)

  1. Jorge
    Member
    Posted 2 years ago #

    Something I noticed and felt it should go in here.

    I put in a "silent" index.php file into an /theme/mytheme/img/ directory of a theme and noticed that when I go via the Dashboard to edit said theme, WP picks it up as the Main Index. It didn't pick up the /theme/mytheme/index.php file and list it with the template.

    I messed with the URL string to go to the right place but that made me go, HMMMM? I know I'm not the only one that protects directories using a silent php files but it left me wondering "what's up with that?"

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    I put that fule into numerous directories in my theme, and they all showed up. Like 10 of them

    Anyway, I just dropped in a blank index.html file instead of the php file. Same end result, but doesn't show in the editor

  3. Jorge
    Member
    Posted 2 years ago #

    Thank you for the voodoo that you do. I'll try that.

Topic Closed

This topic has been closed to new replies.

About this Topic