Theme Description for WordPress Blog Lies in the Stylesheet

So, you’ve embarked on creating your first WordPress theme. Lots of questions arise, like “Where the heck do I put a description for my new theme?

Open up the stylesheet, style.css, and insert several commented lines at the beginning like so:

/*
Theme Name: My First WordPress Theme
Theme URI: http://computeraxe.com/
Description: This is my first wordpress theme.
Version: 0.1
Author: LizzyFin
Author URI:
http://computeraxe.com/
*/

Everything after the “:” is cataloged by WordPress as theme metadata, or information about your theme.

The theme name, description and version will appear in the Admin/Presentation/Themes panel to describe the WP theme. A separate screenshot of the functioning theme completes this picture.

The author’s name and URI, as well as the theme URI where one can see the theme in action, are important details to include at the top of every WordPress stylesheet.

This entry was posted in CSS, WordPress. Bookmark the permalink.

11 Responses to Theme Description for WordPress Blog Lies in the Stylesheet

  1. Rohit says:

    thank you very much i have been searching for this for a while. i think i did not use the right keywords for search.

  2. axe says:

    Ah yes,.. Rohit. It took me a while to find that part.
    Thanks for stopping by!

  3. Lochlan says:

    Exactly what I needed. Thanks!

  4. axe says:

    You’re welcome, Lochlan! Good luck!!

  5. Qaysar says:

    Hello,

    I’v been trying to modify the theme details for a wordpress theme that I have but for the life of me I cannot figure out where the image is in the folder that is being used.

    When I goto my theme area on wordpress website and I can activate or deactivate themes I need to change a particular image displayed for a theme to a custom picture but cannot figure where the image is located to change it.

    Any help is much apprecaited

  6. axe says:

    Hello Qaysar,
    Once you select a theme for your site via Appearance -> Themes, you can use the editor to make changes to the active theme. Pay attention to the text that describes the theme on the Themes page. There usually is a line that states the location of the theme files. For instance, the Twenty Ten theme provided with WordPress states this, “All of this theme‚Äôs files are located in /themes/twentyten.” So, in this example you would look in the folder called “twentyten” for some hint to the location of the image that you want to change.

    Not all themes are so well documented, so you could try to find the image file in “../wp-content/themes/your-theme-folder”. If you’re lucky, there will be an images folder inside the theme directory.

    Once you activate a theme, changes to the files that make up the theme can be made via Appearance -> Editor.

    Hope that helps. Let us know!

  7. Jasper Brouwer says:

    Thanks for the information! Never though that the theme info was located on the .css file lol! Thanks again!

  8. axe says:

    Hi Jasper!
    I know what you mean, it took me a while to find it, too!
    Good luck with your sites.

  9. PixelCut95 says:

    Like it too much!!! Thanks a lot… :D

  10. Datshay says:

    Thanks a lot. I was searching it in the database and some files.
    Never realize that it could be in style.css

    Thanks again

  11. axe says:

    Glad you got it, Datshay!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">