Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Changing theme name after development

I have created a wordpress theme and got the wrong name as wanted by my client. Is there anyway l can change this name without developing the whole theme from scratch?

2 Answers

Kevin Korte
Kevin Korte
28,149 Points

Maybe I'm missing something but the Theme Name is set in the style.css at the top in the comment block. You can simply just edit that and it'll change the Theme Name. You can even edit that right from WP's dashboard.

l have already tried that but it still says the previous name in the when you use the developer tools in chrome to check it. Basically he has a rough idea of all and go an in-house developer. Its some as simple as that but he's making a big deal out of it and obviously l do want to keep our relationship going. l need a way to change so that when the developer tools is used it says the correct name and when the view from the dash board as well it says the correct name.

Kevin Korte
Kevin Korte
28,149 Points

Did you try going from the WP dashboard to Appearance > Editor and than edit the Theme Name in the style.css file? I just did that on a local sandbox WP install I play with, and it does reflect the new name on the Dashboard, and in the Chrome Dev tools, when you inspect the source.

Just curious, is there a link to this site?

Kevin Korte
Kevin Korte
28,149 Points

Did you try going from the WP dashboard to Appearance > Editor and than edit the Theme Name in the style.css file? I just did that on a local sandbox WP install I play with, and it does reflect the new name on the Dashboard, and in the Chrome Dev tools, when you inspect the source.

Just curious, is there a link to this site?

It's not like yet. It uses the old name when linking to any source used on the page. The name do change in the themes dash board area but that's bad far as it goes.

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

The theme name should only appear in the style.css file and partially in the slug of the theme. If you're still seeing an old name I would try switching themes and switching back to yours and looking for any caching plugins running that might need to be cleared.

Thanks Zac Gordon