I'm making my own blank starter WordPress theme & it currently shows many times in the admin theme page & I do not know why! Does anyone know why this might be (& how to fix it)?screenshot of Themes in dashboard showing my starter theme many times

UPDATE 280413 (NB please see my comment below) So after the disaster of my localhost wordpress crash after I tried deleting one of these themes at themes dashboard I reinstalled most of the themes that had been lost. Today while working on a theme I noticed it's link color style remained after I had changed it and saw firebug was pointing to a style.css file OUTSIDE of the localhost/wordpress directory. This style.css was a copy of the style.css in the localhost/wordpress/wp-content/themes/xxxtheme folder I had been editing. I removed the whole folder/directory that was outside wordpress with that style.css from my localhost directory (ie inetpub/wwwroot/xxxtheme folder) & my WordPress theme xxxtheme style editing worked.

I had not realised that folders outside my wordpress folder in my IIS localhost server (yet still in my localhost IIS default site structure) could interact in this way with the wordpress style.css in themes directory. I strongly suspect that this has something to do with the problem I had with so many of the same themes showing in the theme admin dashboard.

I have 'cleansed' my localhost default and localhost wordpress directory of duplicate theme folders & similar wordpress theme style sheets and truly hope this has fixed this problem. Knowing this also will help me do css styling in localhost/localhost/wordpress with less chance of css conflicts/unwanted inheritances....phew! :-)

The screenshot below shows firebug style.css popup referring to a different location to the main style.css for the wp xxxtheme.

localhost/wordpress theme in firebug showing popupbox with unwanted style.css

  • 3
    Are there multiple style.css files? – fuxia Apr 23 '13 at 22:18
  • ... or multiple copies the theme folder? – s_ha_dum Apr 23 '13 at 22:19
  • Thanks for your replies. This theme shows 33 times at the Themes dashboard page. AFAIK I have the theme files in one folder in wp-content>themes with only 1 style.css. I still don't know what is causing this! – rpd Apr 24 '13 at 7:30
  • I cut the folder from the theme directory but it still showed 33 times at the admin page! I tried editing the file but got:"Sorry, can’t edit files with “..” in the name. If you are trying to edit a file in your WordPress home directory, you can just type the name of the file in." I then hit the delete button and this has deleted most of the themes in the themes directory! (I had about 24 in & now only 6 left in). It says using 2012 default theme BUT now there is no twentytwelve folder so nothing displays-pretty much a catastrophic disaster! – rpd Apr 24 '13 at 8:48

The answer is MOST likely (I think!) related to the comments by toscho and s_ha_dum in the comments.

See my comment beneath these and see my UPDATE on my original question. I never dreamt this type of behaviour could happen between a wordpress install in IIS localhost in default site and other folders/directory outside the wordpress>wp-content>themes directory yet still in localhost default site. Now I know this can & does happen I will be more careful in future to avoid the problems these conflicts can cause!

I mark this as answered/resolved now.

  • 2
    Can you please clarify this answer and put all of answer into the answer? As it is the solution is very disjointed. – s_ha_dum Apr 28 '13 at 22:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.