Integrate Theme Switcher

What if you want Theme Switcher into all your WordPress Themes?
Try this

  • Open file “wp-includes\template-functions-general.php" and search for “function wp_meta() {"
  • add this code just after "do_action('wp_meta');"
  1.  
  2. echo "</ul><h2>Themes:</h2><div>";
  3. wp_theme_switcher('dropdown');
  4. echo "</div>";
  5.  
  • save the file, and you'll get the Theme Switcher on everypage after the meta


You can easily add Theme Switcher to your theme by added

  1.  
  2. <li>Themes:<?php wp_theme_switcher(); ?></li>
  3. or
  4. <li>Themes:<?php wp_theme_switcher('dropdown'); ?></li>
  5.  

as described by author


Tags :

This entry was posted on Thursday, October 19th, 2006 at 10:51 pm and is filed under Solutions. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

 

Leave a Reply


 Top