Tips, Web Design, Web Development, WordPress

How to Name your WordPress Theme

A lot of our work now-a-days has come in the form of creating custom themes for WordPress. When building a custom theme for WordPress we name our themes for many reasons but the most important is that if we just put our theme into the default folder or the twentyten folder then when a WordPress update is done the theme can be overwritten and if you don’t have a backup, gone forever.

To name your theme just follow these simple steps:

1) Open up your theme’s stylesheet typically named style.css.
2) Paste the following text into the top of your theme’s stylesheet:

/*
Theme Name: Twenty Ten
Theme URI: http://wordpress.org/
Description: The 2010 default theme for WordPress.
Author: wordpressdotorg
Author URI: http://wordpress.org/
Version: 1.0
Tags: black, blue, white, two-columns (optional)
*/

3) Go ahead and change the fields as you see fit. Just remember to leave the field names such as “Theme Name”, “Theme URl”, “Description”, etc. and just change everything after the colon.

4) After you’ve saved your changes you should now see what you typed in when you browse your themes in your WordPress Admin Panel.

5) The last step is to change out the standard WordPress thumbnail screenshot for one of your own. To do this just take whatever image you prefer and rename it screenshot.png. Once you have renamed your file, replace the one in your themes folder with your new image and you’ll be good to go.

For more on how to name your custom wordpress them check out this link from WordPress.

If you need any help naming your wordpress theme feel free to contact us.

Related posts

  • Karan

    How do we hide theme name from here..
    If we switch to view source and search stylesheet.. we will find the name of wordpress theme used.. for example

    • Karen – Great question. We will actually write a post about this. It’s a pretty simple fix.

      You can remove it by adding this to your theme’s functions.php:

      remove_action(‘wp_head’, ‘wp_generator’);

      • Karan

        Thanks for quick reply. I just tried adding the given code at the end of my theme’s functions.php but the code started appearing at the top right corner of my homepage. I am sorry for such silly questions but i am new to wordpress.. Thanks in advance. 🙂

  • Pingback: How to Hide Your WordPress Theme Information | Cat on the Couch Blog()