Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Difference between revisions of "Using Themes"

(Get New Themes)
(Replaced content with "<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3574817396572846" crossorigin="anonymous"></script>")
 
(510 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
  +
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3574817396572846"
__TOC__
 
  +
crossorigin="anonymous"></script>
Before the advent of Themes, WordPress generated content using a single file, <tt>index.php</tt>, and files to support comment display and submission. A single style sheet controlled the presentation. All other pages, including the category and archive pages, were generated by passing parameters to the <tt>index.php</tt> page.
 
 
The new Theme system provides two convenient features.
 
 
; Physically Separate Components :The new WordPress modular [[Stepping Into Templates|template files]] system provides a method to define separate physical [[Glossary#PHP|PHP]] files for the different components of your WordPress site. This allows creation of unique designs and functionality for many special pages, such as [[Category Templates|category archives]], [[Creating_an_Archive_Index|monthly archives]], and the individual entry pages.
 
;Quickly Change Layout and Design :It allows users with appropriate permissions to quickly change the layout of the entire site by uploading a new theme and essentially flipping a switch in the admin panel.
 
 
The old method of generating pages will still work. If you are [[Upgrade_1.2_to_1.5|upgrading from v1.2 or v1.2.1 or v1.2.2]], '''you can continue using your existing design'''. Keeping your older design will not prevent you from adding additional themes and easily switching between designs.
 
 
==What is a Theme?==
 
 
Fundamentally, the WordPress Theme system is a way to "skin" your weblog. Yet, it is more than just a "skin." Skinning your site implies that only the design is changed. WordPress Themes can provide much more control over the look ''and presentation'' of the material on your website.
 
 
A WordPress Theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a weblog. These files are called [[Templates|'''template files''']]. A theme modifies the way the site is displayed, without modifying the underlying software. Themes may include customized template files, image files (<tt>*.jpg</tt>, <tt>*.gif</tt>), style sheets (<tt>*.css</tt>), custom [[Pages]], as well as any necessary code files (<tt>*.php</tt>). For an introduction to template files, see [[Stepping Into Templates]].
 
 
Themes are a whole new ball game. Let's say you write a lot about cheese and gadgets. Through the innovative use of the [[The Loop|WordPress Loop]] and [[Templates|template files]], you can customize your Cheese category posts to look different from your Gadgets category posts. With this powerful control over what different pages and categories look like on your site, you are limited only by your imagination. For information on how to use different Themes for different categories or posts, see [[The Loop in Action]] and [[Category Templates]].
 
 
==Get New Themes==
 
* [http://wordpress.org/extend/themes/ Official WordPress Theme page]
 
* [[Using_Themes/Theme_List|Codex WordPress Theme List]]
 
* [http://themes.wordpress.net/ WordPress Theme Viewer]
 
* [http://www.emilyrobbins.com/how-to-blog/comprehensive-list-of-615-free-wordpress-15-and-20-themes-templates-available-for-download-266.htm How to Blog's List of 615+ Themes]
 
* [http://www.alexking.org/blog/2005/02/27/wordpress-theme-competition/ Alex King's WordPress Theme Competition]
 
* [http://www.redalt.com/Tools/builder.php WordPress Index and Theme Builder]
 
* [http://webdesignbook.net/themes/ WordPress Theme Park]
 
* [http://www.wordpresstheme.com/ WordPressTheme.com]
 
* [http://wpdemo.kaushalsheth.com/ Kaushal Sheth's Wordpress Theme Viewer]
 
* [http://wpthemes.info/ WP Themes. Info]
 
* [http://gallery.wordpress.com/ Gallery for WordPress]
 
* [http://www.johntp.com/wp-skins/ JohnTP's WordPress Skin Library]
 
* [http://www.skinsforwp.com/ Skins/Themes for WordPress]
 
* [http://www.gfxedit.com/themes/wordpress/ GFXedit.com Themes]
 
 
===Theme Announcements===
 
* [http://weblogtoolscollection.com/ Web Tools Collection]
 
* [http://www.bloggingpro.com/archives/category/wordpress-themes/ Blogging Pro WordPress Themes Category]
 
* [http://wordpress.org/support/forum.php?id=5 WordPress forums]
 
* [http://www.emilyrobbins.com/how-to-blog/comprehensive-list-of-615-free-wordpress-15-and-20-themes-templates-available-for-download-266.htm How to Blog's Comprehensive Theme List]
 
* [http://www.alexking.org/blog/2005/02/27/wordpress-theme-competition/ Alex King's WordPress Theme Competition]
 
* [http://webdesignbook.net/themes/ WordPress theme park]
 
 
==Using Themes==
 
 
WordPress supplies two themes in its distribution for your initial use. You can switch between these two themes using the admin panel. Themes that you add to that directory will appear in the [[Administration Panels]] > [[Administration_Panels#Presentation_-_Change_the_Look_of_your_Blog|Presentation]] as additional selections.
 
 
===Adding New Themes===
 
 
There are many themes available for download that will work with your WordPress installation.
 
 
[[Image:themes.png|thumb|right|Presentation Theme Panel]]If the theme that you are installing provides instructions, be sure to read through and follow those instructions for the successful installation of the theme. '''It is recommended that theme developers provide installation instructions for their own themes''', because themes can provide special optional functionality that may require more steps than the basic installation steps covered here. If your theme does not work after following any provided instructions, please '''contact the theme author for help'''.
 
 
To add a new theme to your WordPress installation, follow these basic steps:
 
 
# Download the theme archive and extract the files it contains. You may need to preserve the directory structure in the archive when extracting these files. Follow the guidelines provided by your theme author.
 
# Using an [[FTP_Clients|FTP client]] to access your host web server, create a directory to contain your theme in the <tt>wp-content/themes</tt> directory provided by WordPress. For example, a theme named '''Test''' should be in <tt>wp-content/themes/test</tt>. Your theme may provide this directory as part of the archive.
 
# Upload the theme files to the new directory on your host server.
 
# Follow the [[#Selecting_the_Active_Theme|instructions below]] for selecting the new theme.
 
 
===Selecting the Active Theme===
 
 
To select the active theme for your site:
 
 
# Log in to the WordPress [[Administration Panels]].
 
# Select the [[Administration_Panels#Presentation_-_Change_the_Look_of_your_Blog|Presentation]] subpanel.
 
# From the '''Select''' column in the table, click on '''Select''' for the theme you wish to activate.
 
# To view the new look, click '''View Site''' at the top of the Panel's screen.
 
 
Your selection should immediately become active.
 
 
==Creating Themes==
 
 
If you are interested in creating your own theme for distribution, or learning more about the architecture of themes, please review the documentation regarding [[Theme Development]] and [[Designing Themes for Public_Release]].
 
 
===Theme Files===
 
 
The following are the files typically included within a Theme.
 
 
*[[Creating_an_Error_404_Page|404 Template]] = <tt>404.php</tt>
 
*Archive Template = <tt>archive.php</tt>
 
*[[Creating_an_Archive_Index|Archive Index Page]] = <tt>archives.php</tt>
 
*Comments Template = <tt>comments.php</tt>
 
*Footer Template = <tt>footer.php</tt>
 
*[[Designing Headers|Header Template]] = <tt>header.php</tt>
 
*Links = <tt>links.php</tt>
 
*Main Template = <tt>index.php</tt>
 
*[[Pages|Page Template]] = <tt>page.php</tt>
 
*Popup Comments Template = <tt>comments-popup.php</tt>
 
*Post Template = <tt>single.php</tt>
 
*Search Form = <tt>searchform.php</tt>
 
*[[Creating a Search Page|Search Template]] = <tt>search.php</tt>
 
*[[Customizing Your Sidebar|Sidebar Template]] = <tt>sidebar.php</tt>
 
*Stylesheet = <tt>style.css</tt>
 
 
== Moving from 1.2.x to 1.5 == <span id="Moving 1.2.x to 1.5"></span>
 
 
For details on upgrading WordPress and your WordPress Theme from v1.2 to 1.5, see: [[Upgrade_1.2_to_1.5|Upgrade 1.2 to 1.5]].
 
 
==Theme Tools and Other Resources==
 
 
These tools and resources will aid you in creating and/or enhancing themes.
 
 
===Layout===
 
 
* [[Blog Design and Layout]]
 
* [[Stepping Into Templates]]
 
* [[Customizing Your Sidebar]]
 
* [[Good Navigation Links]]
 
* [[Next and Previous Links]]
 
* [[Styling Lists with CSS]]
 
* [[Creating Horizontal Menus]]
 
* [[Dynamic Menu Highlighting]]
 
* [[FAQ Layout and Design|FAQ Layout and Design]]
 
* [http://www.redalt.com/Tools/builder.php WordPress Index Builder]
 
* [http://www.wateronlydries.com/?p=158 Photoshop Template for the WordPress Default Theme]
 
 
===Templates and Template Tags===
 
 
* [[Templates|Template Files]]
 
* [[Stepping Into Templates]]
 
* [[Stepping Into Template Tags]]
 
* [[Template Tags]]
 
* [[Theme Development|Developing WordPress Themes]]
 
* [[The Loop in Action]]
 
* [http://guff.szub.net/wordpress/template-tags/ Template Tag Layout in simple to read form]
 
* [http://boren.nu/archives/2004/11/10/anatomy-of-a-wordpress-theme/ Anatomy of a WordPress Theme]
 
* [http://boren.nu/archives/2004/10/16/templates-and-the-is-functions/ Templates and the is functions]
 
* [http://www.urbangiraffe.com/2005/04/12/themeguide1/1/ Dissection of a WordPress Theme]
 
 
===Tools and Resources===
 
 
* [[Designing Themes for Public Release]]
 
* [[Know Your Sources]]
 
* [[Validating a Website]]
 
* [[Finding Your CSS Styles]]
 
* [[CSS Fixing Browser Bugs]]
 
* [http://elasticdog.com/2004/11/wp-design-sandbox/ WordPress Design Sandbox Article]
 
* [http://www.cameraontheroad.com/index.php?p=594 Working On CSS and the WordPress Theme (using a sandbox)]
 
*[http://theundersigned.net/2006/05/from-xhtmlcss-to-wordpress/ From XHTML CSS to WordPress (making a Theme}]
 
 
===Colors, Graphics, and Fonts===
 
 
* [http://www.redalt.com/Tools/kubrickr.php Kubrickr - Changes Default Theme Header Images]
 
* [http://www.digitalwestex.com/gallery/index.php?cat=3 Header Graphics]
 
* [http://creativecommons.org/image/ Creative Commons Images]
 
* [http://www.imageafter.com/ Image * After - Free Stock Image Library]
 
* [http://www.sxc.hu/ Stock.xchng - Free Stock Image Library]
 
* [[Playing With Fonts]]
 
* [[Developing a Colour Scheme]]
 
* [http://colr.org Colr.org - For Finding Colors in an Image]
 
* [http://www.redalt.com/Tools/ilyc.php I Like Your Colors]
 
 
[[Category:Getting Started]]
 
[[Category:Design and Layout]]
 
[[Category:UI Link]]
 

Latest revision as of 22:23, 16 November 2023

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3574817396572846"

    crossorigin="anonymous"></script>