e.b.i.f
  • Photo-Biyori
  • about
  • bookmarks
  • skip to menu ↓

2007/10/19 (Fri)

WP Plugin: Theme Switcher

WordPressのテーマのテスト、開発に重宝するのがTheme Switcherというプラグイン。(ここのリニュの際にも使用しました。)素敵なテーマを見つけたけど、自分のサイトに使ったらどんな感じになるか、実際にテーマを変更する前にこっそりプレビュするのに使えます。

まず、プラグインファイルをDLして、有効化。wp-content/themesフォルダーの中の試したいテーマの名前をサイトのアドレスの後に入力します。
入力方法は

www.yoursite.com/?wptheme=テーマの名前

テーマの名前がわからない時は管理画面のテーマ>テーマエディタ>編集するテーマを選択から、試したいテーマのスタイルシートのファイルを選択します。ソースコードの
Theme Name: xxxxx
のxxxxxの部分です。(大文字、小文字に注意)テーマの名前にスペースがある場合はスペースの代わりに+を使用。(*1)

以下の使い方はあんまり実用的ではないような気もするのですが、開発者の意図は、サイトに遊びにきた人が好きなテーマを選べるようにすることなので、そのためのタグも用意されています。
テーマのリストを出力:

<?php wp_theme_switcher(); ?>

テーマのリストをドロップダウンメニューで出力:

<?php wp_theme_switcher('dropdown'); ?>

この場合,wp-content/themesフォルダーにあるテーマが全て表示されるので、非表示にしたい場合はフォルダーからテーマを削除する必要があります。

テーマが変わるだけでサイトの雰囲気が随分違ってくるので、自分にあったテーマ探しをするのに利用してみてください。
WordPress.orgが管理しているWPテーマサイト: Theme Viewer

*クッキーなしのログインユーザだけに表示されるPreview Themeというプラグインもあります。(同一開発者)こちらは

www.yourdomain.com/?preview_theme=テーマの名前

という風に使います。(スペースのかわりに%20を使用)

  1. クッキーに登録されるので、一番最後にテストしたテーマが次回に表示されます。テストが終わったら、プラグインを無効化することをお薦めします。[↩]
TAG: plugin theme-switcher wordpress
CAT: wordpress | TIME: 12:28 AM
Tweet
  • [...] The rest is here: e.b.i.f » WP Plugin: Theme Switcher Comments0 Leave a Reply Click here to cancel reply. [...]

    :: e.b.i.f » WP Plugin: Theme Switcher :: 2009-10-24 at 9.55 pm
  • おお、便利そうだー。
    ずっと同じレイアウトで来ているので変えてみようかなぁと思いつつなかなか手が出ないでいるのでした。
    ちょっと試しに使ってみようかしら。

    :: nao@mdlm :: 2007-10-20 at 1.07 am
  • >naoさん、
    かなり良いですよ、これ。ぜひ試してみてください。
    ただ、ほんとに他の人に見えてないんだろうかって、テスト中心配になったりしますけど。(笑

    :: tomo :: 2007-10-20 at 10.08 pm


Prev/Next Posts

HOLGA 120PC新登場
World Toy Camera Day 2007

In Same Category

WP Plugin: Get Recent Comments
WP2.3 にアップデート

Recent Posts

  • サイトのお引越し
  • Posterous to WordPress
  • One Down.
  • February Resolution
  • DeliciousのブックマークをWordPressに移行する

Recent Comments

  • Franck C. on PB3: Questions, Feedbacks and Ideas
  • Kumitey on PB3: Questions, Feedbacks and Ideas
  • ganmo on PB3: Questions, Feedbacks and Ideas
  • Download and Installation « Photo-Biyori on PB2: How to Use Widgets in Photo-Biyori 2.0
  • Lindsay on PB3: Questions, Feedbacks and Ideas
  • Salih Deveci on PB3: Questions, Feedbacks and Ideas


Category

  • +doing+ Feed for all posts filed under +doing+ (49)
  • +feeling+thinking+ Feed for all posts filed under +feeling+thinking+ (26)
  • +listening+ Feed for all posts filed under +listening+ (5)
  • +reading+ Feed for all posts filed under +reading+ (9)
  • +watching+ Feed for all posts filed under +watching+ (41)
  • biboroku Feed for all posts filed under biboroku (11)
  • cameras Feed for all posts filed under cameras (31)
  • design+goods Feed for all posts filed under design+goods (31)
  • ebif Feed for all posts filed under ebif (10)
  • photography+art Feed for all posts filed under photography+art (16)
  • photography+me Feed for all posts filed under photography+me (40)
  • tsubuyaki Feed for all posts filed under tsubuyaki (58)
  • web+tech Feed for all posts filed under web+tech (20)
  • wordpress Feed for all posts filed under wordpress (34)
  • wp+photo-biyori Feed for all posts filed under wp+photo-biyori (13)

Search

Monthly Archives

  • 2011:
    01 02 03 04 05 06 07 08 09 10 11 12
  • 2010:
    01 02 03 04 05 06 07 08 09 10 11 12
  • 2009:
    01 02 03 04 05 06 07 08 09 10 11 12
  • 2008:
    01 02 03 04 05 06 07 08 09 10 11 12
  • 2007:
    01 02 03 04 05 06 07 08 09 10 11 12
  • 2006:
    01 02 03 04 05 06 07 08 09 10 11 12