Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPressでテーマのデモバーを追加する方法

WordPressテーマショップやマーケットプレイスの多くは、ユーザーがテーマをプレビューしやすくするためにテーマデモバーを利用している。テーマデモバーは、テーマ選択メニューとサイトの上部に表示されるツールバーです。このツールバーを利用することで、ダミーのコンテンツを持つサイトを作成し、ユーザーはそのサイトを利用して、さまざまなテーマのデモを見ることができます。いくつかの無料テーマをリリースしたい私たちのユーザーの一人は、彼のサイトにテーマのデモバーの機能を追加する方法を私たちに尋ねた。この投稿では、WordPressでテーマデモのバーを追加する方法を紹介します。

まず、WordPressテーマデモバープラグインをインストールして有効化した。有効化したら、設定ページからプラグインを設定する必要があります:

Theme Demo Bar WordPress plugin settings page

プラグインの使い方はとてもシンプルで簡単です。次のようにURLにthemedemo変数を追加します:

http://www.example.com/?themedemo=theme-name

theme-nameを表示したいテーマの名前に置き換えてください。URLには、テーマ・デモ・バー、テーマ・スイッチャー、閉じるボタンが付いたexample.comが表示されます。WordPress Theme Demo Barプラグインは、テーマディレクトリからテーマの名前をピックアップします。テーマスイッチドロップダウンには、子テーマを含むテーマディレクトリ内のすべてのテーマが表示されます。

プラグイン設定ページの設定オプションは、デモバーの完全なルックアンドフィールをコントロールすることができます。また、表示するテーマと非表示にするテーマを選択することができます。WordPress Theme Demo Barは、各テーマがプレビューされた回数の統計も提供します。個々のテーマの設定では、各テーマの情報ページを選択することができます。これは、訪問者がテーマをダウンロード/購入したり、その機能について詳しく知ることができるページにすることができます。あなたが望むなら、これは簡単に外部のテーマショップへのアフィリエイトリンクにすることができます。

theme demo bar individual theme settings

WordPress Theme Demo Bar Settings ” Look and Feelでは、Theme Demo Barの外観を簡単に変更することができます。あなたは、ボタンをアップロードするカスタムスタイルシートを使用し、デモバーの高さと位置を調整することができます。

Changing looks of Theme Demo Bar

WordPressテーマデモバーは、迅速かつ簡単なソリューションです。しかし、テーマのデモバーを表示するには、他のより高度で複雑な方法があります。あなたは手動でフローティングトップメニューバーを作成したり、仕事をするためにいくつかの他のプラグインを使用することができます。テーマデモバーは、主に商業WordPressテーマを販売しているテーマショップを対象としていますが、あなたの仕事を紹介するために、同様にポートフォリオスタイルのテーマで簡単に使用することができます。テーマデモバーソリューションの利点は、複数のデモサイトを作成するのではなく、あなたのテーマのすべてを表示するには、個別サイトを使用できることです。あなたが他の方法を使用してテーマデモバーを使用している場合は、下記のコメントでお知らせください。

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

アバター

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

12件のコメント返信を残す

  1. Syed Balkhi

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Dave W

    Which is a better approach for demos that you want to show prospective clients, this or multisite? Thanks.

  3. tdesens

    Any chance on a tutorial to do this without a plugin?

  4. Cam

    Nice plugin. Would you be updating the plugin for multisite compatibility any time in the near future?

  5. Pavan Solapure

    Very useful information but the plugin seems to be out of date. I could really use any other suggestions to showcase couple of my wordpress themes.

  6. Neo Do

    Great post but how do I get content for demo theme?

    • WPBeginner Support

      There are some dummy content generator plugins available in WordPress plugin directory.

      管理者

  7. Pali Madra

    Thank you for the great tutorial.

    Since the plugin discussed has not been updated for more than 2 years WordPress repository does warn the users to use the plugin at their own risk. Can the author or someone vouch that it does work with WordPress 3.6?

    Thanks in advance.

    • WPBeginner Support

      Out of 28 thousand downloads no one has reported it to be broken yet. However, we would recommend caution. Try it in a test installation on your localhost environment first.

      管理者

  8. Randi Thornton

    Great post. I have wanted to add a theme bar to my website. I downloaded the plugin and am not sure how to configure it using my current theme demo website configurations. Currently my themes (including theme demo content) reside on a sub-domain not my primary domain. The plugin is finding the themes but not the theme demo sites on the sub-domains. This is a wordpress multi-site installation. Any ideas or suggestions?

    • Rakesh Kumar

      This plugin does not display the contents according to the other selected theme it only display the front page of theme theme properly thus make it totally useless. any other suggestion how to create theme demo bar like marketplace do. Thanks in advance

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。