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テーマカスタマイザー設定のインポート/エクスポート方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

WordPressのテーマカスタマイザー設定をインポートまたはエクスポートしたいですか?

複数のWordPressサイトを持っている場合、テーマカスタマイザー設定をエクスポートおよびインポートすることで、両方のサイトでテーマに同じ設定を使用することができます。

この投稿では、WordPressテーマのカスタマイザー設定を簡単にインポート/エクスポートする方法を紹介します。

Import / export theme customizer settings in WordPress

なぜWordPressテーマカスタマイザーの設定をインポート/エクスポートするのか?

多くのWordPressテーマでは、テーマカスタマイザーを使ってWordPressサイトを設定することができます。色、ヘッダー画像背景画像の変更、レイアウト設定の選択などが可能です。

有料テーマや無料テーマの中には、カスタマイザーで利用できる設定項目が多いものもあれば、基本的なオプションしかないものもある。

ローカルサーバーや ステージングサイトでテーマをカスタマイズしていた場合、その設定をライブサイトに移動できればいいと思いませんか?

これにより、コンテンツやデータベースを移動することなく、テーマカスタマイザーの設定をWordPressサイトから別のサイトに移動することができます。

また、カスタマイザーの設定をエクスポートしたいのは、カスタムの子テーマを作成して他の人と共有したい場合や、テーマがエラーを起こして削除しなければならない場合です。

そして、その問題を解決したら、テーマ・カスタマイザーの設定を再び簡単にインポートすることができます。

ということで、WordPressのテーマカスタマイザー設定を簡単にインポート/エクスポートする方法を見ていきましょう。

WordPressでテーマカスタマイザーの設定をインポート/エクスポートする方法

まず、エクスポート/インポートしたい両方のサイトにカスタマイザー・エクスポート/インポート・プラグインをインストールし、有効化する必要があります。詳しくはWordPressプラグインのインストール方法をご覧ください。

有効化したら、エクスポートしたいサイトのWordPressダッシュボードから外観 ” カスタマイズページにアクセスします。

Export/Import option in Customizer

ここから、左カラムの’Export/Import’パネルをクリックし、さらなる設定を開きます。

次に、「エクスポート」ボタンをクリックしてカスタマイザー設定をダウンロードし、.datファイルでブラウザーに送信します。

Export customizer settings

このプラグインは、テーマMODとして定義されている、またはWordPressデータベースにオプションとして保存されているテーマオプションをすべてエクスポートします。つまり、色の設定、レイアウトの方向性、ヘッダーメディアなどをエクスポートすることができます。

ただし、ナビゲーションメニュー、サイトのタイトルと説明、ウィジェットなどはエクスポートされません。

カスタマイザー設定をインポートするには、これらの設定をインポートしたいWordPressサイトに移動します。

ここから、WordPress管理画面のサイドバーから外観 ” カスタマイザーページにアクセスし、エクスポート/インポートパネルをクリックします。

その後、「インポート」セクションの下にある「ファイルを選択」ボタンをクリックして、先にエクスポートしたファイルを選択します。

また、ヘッダーやその他の画像ファイルをインポートするには、’Download and import image files?’オプションの横にあるチェックボックスをオンにする必要があります。

Import theme settings
次に、「インポート」ボタンをクリックして、エクスポートファイルからカスタマイザー設定のアップロードを開始します。

カスタマイズが完了したら、カスタマイザーで変更内容を確認し、「保存して公開する」ボタンをクリックして変更を反映させます。

プラグインはテーマカスタマイザーを使って保存されたテーマ設定のみをエクスポートし、メニュー、ウィジェット、画像などのサイトデータはエクスポートしないことに留意してください。これらの変更は手動で設定する必要があります。

ボーナス:インポート/エクスポート・ナビゲーション・メニュー

複数のWordPressサイトを持っている場合、ナビゲーションメニューを1つのサイトから他のサイトに転送したいと思うかもしれません。WPS Menu Exporterプラグインを使えば簡単にできます。

プラグインをインストールしたら、WordPressダッシュボードからツール ” エクスポートページにアクセスします。ここで、’ナビゲーションメニュー項目’オプションを設定し、’エクスポートファイルをダウンロード’ボタンをクリックします。

Export the navigation menu items

そうすると、ナビゲーションメニューがコンピューターに.xmlファイルとして保存されます。その後、ツール ” インポートページにアクセスして、ナビゲーションメニューを新規サイトにインポートすることができます。

ここで、WordPressオプションの下にある「今すぐインストール」と「インポーターを実行」のリンクをクリックする必要があります。

Install the WordPress import tool

ナビゲーションメニューファイルをコンピューターから簡単にインポートすることができます。

これでWordPressサイトへのナビゲーションメニューのインポートとエクスポートが完了しました。

Upload your .xml file and click the button to import it to your new site

詳しい手順は、WordPressでナビゲーションメニューをインポート/エクスポートする方法のチュートリアルをご覧ください。

WordPressのテーマカスタマイザーの設定をインポート/エクスポートする方法について、この投稿がお役に立てれば幸いです。WordPressテーマカスタマイザーをプロ並みに使いこなすための初心者向けガイドや、WordPressテーマを変更する前に必ずやっておくべきことのチェックリストも参考にしてください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

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

Avatar

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

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

  1. Syed Balkhi says

    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. Dayo Olobayo says

    This is a great tip. I’m always worried about losing my customization settings when I switch to a new theme. I’ll definitely be looking into the Customize Export/Import plugin. But please, does this plugin work with all WordPress themes or are there any specific themes that it’s compatible with?

  3. Dennis Muthomi says

    if I export the theme customizer settings from one site and then import them to another site that has a different theme installed, will the imported settings still apply properly?
    Or does this import/export process only work if I’m using the exact same theme on both sites? Having the ability to transfer settings between different themes would be really valuable

      • Dennis Muthomi says

        Wow, thanks for the reply! good to know it only works for the same theme or child themes.Appreciate you clarifying :-)

  4. Ram E. says

    Thanks! Although I don’t think this would work for block themes–from default WP 2023 to the recently released 2024 theme with WordPress 6.4. I am trying to install a staging environment for my website today to configure the new WP default theme before pushing the changes to live but the staging feature of the Bluehost plugin s*cks. This is how I ended up in this article. (Sigh) Looking for some staging alternatives as I only need to update the theme.

  5. Teresa E Langston says

    This plugin does not work with child of 2022 theme.

    Export works fine. Error on import:
    Error importing settings! The settings you uploaded are not for the current theme.

    There does not seem to be a way to get past this situation. Have scanned faqs/support forums

    • WPBeginner Support says

      You would want to ensure the folder names are the same for your child theme to prevent that specific error. You can also reach out to the plugin’s support and they may be able to assist further.

      管理者

    • WPBeginner Support says

      You would want to check with the support for the plugin whose settings you are looking to transfer for if they have a tool for that purpose.

      管理者

    • WPBeginner Support says

      If you reach out to the plugin’s support and let them know your specific theme and they should be able to help

      管理者

  6. Salman Saleem says

    Thank you so much for saving my day. Was thinking to migrate the whole site but this plugin is a saviour.

  7. Fejiro says

    Please a search bar is showing in my customize theme page. Its blocking the save button. How do I remove it.

  8. Ted says

    I used this plugin to export customizer settings from one site and import them to another site using the same theme. Worked without a hitch and even imported background and header images. One thing I noticed is the current version (0.8) automatically saves the changes, which may be an issue if somebody just wants to see how it looks without committing to the changes. The unwary user will inadvertently overwrite any settings they may currently have saved.

  9. NazakatMunawar says

    WordPress themes are easily imported and export as all the content and images will get transformed into any themes accordingly but still, I suggest to make a back up before making any changes to the themes.

返信を残す

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