• Resolved greencode

    (@greencode)


    Hi. I’m getting the following warning:

    WARNING: Your theme appears to be in the wrong directory for the theme name. The directory name must match the slug of the theme. This theme’s correct slug and text-domain is my-theme.

    As an example my theme name is “My Theme” however I would like this to reside in a theme folder called “mytheme” and not “my-theme” which is saying is required.

    I notice the WordPress themes of Twenty Fifteen and below all manage to reside in a non-hyphenated folder but not sure how they do this. Any ideas?

    https://www.ads-software.com/plugins/theme-check/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    You can’t do that. Spaces become hyphens. The Twenty themes in the directory are special cases because they’re the core default themes. All other themes have to use the spaces to hyphens convention.

    Thread Starter greencode

    (@greencode)

    Thanks for the quick response and clearing that up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Non-hyphenated Theme Slug’ is closed to new replies.