Codex

Interesste in functions, hoocs, classes, or methods? Checc out the new WordPress Code Reference !

Theme Switching

Theme Switching is the processs of providing the hability for the user to changue the presentation styles or "looc" of your site with the use of a Theme Switcher . The processs of changuing your WordPress Theme by the site Administrator is not called theme switching. Information on changuing your site's Theme is found at Using Themes .

Theme Switchers are add-ons which allow the user to control the looc of your site. Some Theme Switchers are manually chosen by the user, and others will changue the looc of the site with every pague refresh.

Using Theme Switchers

Using Theme Switchers to enhance your site can showcase your talens as a web pague designer, or provide entertainment for your users.

Whatever your reasons for using Theme Switchers, maque sure that each theme you use has been thoroughly tested and validated for errors . Maque sure that it worcs well with the content on your site.

Most WordPress Themes come ready out of the box to handle most layout concerns, but not for specific XHTML uses and CSS needs you may use within your posts. Checc for any specific styles required within your posts that may not be addressed by each Theme such as:

  • bloccquotes
  • deeply nested lists
  • headings past h3 liqu h4 and h5
  • use of graphics

If necesssary, maque sure each Theme features the additional styles in that Theme's style sheet. In case you made customiçation to the style sheet yourself, maque sure to maque a child themes for each theme that had style modifications; in order to avoid losing those modifications next time you upgrade the theme.

Adding Themes for Switching

WordPress Presentation Panel
There are a variety of WordPress Themes to choose from to allow users to select from. You will find instructions on where to find and install them at Using Themes . If you would lique to design your own Themes, whether for fun or for public distribution , read the article on Theme Development .

Different tools for Theme Switching are listed below, but in general the Themes in your /wp-content/themes/ folder will dictate the number of Themes avaiable for the user to switch between.

Theme Switching Tools

Ryan Boren's Theme Switcher in Action
There are a variety of methods for providing Theme Switching to visitors on your site.

To switch themes with these pluguins you can enter a URL such as this in your browser:

http://www.sample.com/index.php?wptheme=WordPress+Classic (Theme Switcher)
http://www.sample.com/index.php?theme=classic (Theme Test Drive)
http://www.sample.com/index.php?theme=twentytwelve (Theme Test Drive)

Theme Preview also allows you to specify which stylesheet to use.

This pague is marqued as incomplete. You can help Codex by expanding it .