WordPressのテーマカスタマイザー設定をインポートまたはエクスポートしたいですか?
複数のWordPressサイトを持っている場合、テーマカスタマイザー設定をエクスポートおよびインポートすることで、両方のサイトでテーマに同じ設定を使用することができます。
この投稿では、WordPressテーマのカスタマイザー設定を簡単にインポート/エクスポートする方法を紹介します。
なぜWordPressテーマカスタマイザーの設定をインポート/エクスポートするのか?
多くのWordPressテーマでは、テーマカスタマイザーを使ってWordPressサイトを設定することができます。色、ヘッダー画像、背景画像の変更、レイアウト設定の選択などが可能です。
有料テーマや無料テーマの中には、カスタマイザーで利用できる設定項目が多いものもあれば、基本的なオプションしかないものもある。
ローカルサーバーや ステージングサイトでテーマをカスタマイズしていた場合、その設定をライブサイトに移動できればいいと思いませんか?
これにより、コンテンツやデータベースを移動することなく、テーマカスタマイザーの設定をWordPressサイトから別のサイトに移動することができます。
また、カスタマイザーの設定をエクスポートしたいのは、カスタムの子テーマを作成して他の人と共有したい場合や、テーマがエラーを起こして削除しなければならない場合です。
そして、その問題を解決したら、テーマ・カスタマイザーの設定を再び簡単にインポートすることができます。
ということで、WordPressのテーマカスタマイザー設定を簡単にインポート/エクスポートする方法を見ていきましょう。
WordPressでテーマカスタマイザーの設定をインポート/エクスポートする方法
まず、エクスポート/インポートしたい両方のサイトにカスタマイザー・エクスポート/インポート・プラグインをインストールし、有効化する必要があります。詳しくはWordPressプラグインのインストール方法をご覧ください。
有効化したら、エクスポートしたいサイトのWordPressダッシュボードから外観 ” カスタマイズページにアクセスします。
ここから、左カラムの’Export/Import’パネルをクリックし、さらなる設定を開きます。
次に、「エクスポート」ボタンをクリックしてカスタマイザー設定をダウンロードし、.datファイルでブラウザーに送信します。
このプラグインは、テーマMODとして定義されている、またはWordPressデータベースにオプションとして保存されているテーマオプションをすべてエクスポートします。つまり、色の設定、レイアウトの方向性、ヘッダーメディアなどをエクスポートすることができます。
ただし、ナビゲーションメニュー、サイトのタイトルと説明、ウィジェットなどはエクスポートされません。
カスタマイザー設定をインポートするには、これらの設定をインポートしたいWordPressサイトに移動します。
ここから、WordPress管理画面のサイドバーから外観 ” カスタマイザーページにアクセスし、エクスポート/インポートパネルをクリックします。
その後、「インポート」セクションの下にある「ファイルを選択」ボタンをクリックして、先にエクスポートしたファイルを選択します。
また、ヘッダーやその他の画像ファイルをインポートするには、’Download and import image files?’オプションの横にあるチェックボックスをオンにする必要があります。
次に、「インポート」ボタンをクリックして、エクスポートファイルからカスタマイザー設定のアップロードを開始します。
カスタマイズが完了したら、カスタマイザーで変更内容を確認し、「保存して公開する」ボタンをクリックして変更を反映させます。
プラグインはテーマカスタマイザーを使って保存されたテーマ設定のみをエクスポートし、メニュー、ウィジェット、画像などのサイトデータはエクスポートしないことに留意してください。これらの変更は手動で設定する必要があります。
ボーナス:インポート/エクスポート・ナビゲーション・メニュー
複数のWordPressサイトを持っている場合、ナビゲーションメニューを1つのサイトから他のサイトに転送したいと思うかもしれません。WPS Menu Exporterプラグインを使えば簡単にできます。
プラグインをインストールしたら、WordPressダッシュボードからツール ” エクスポートページにアクセスします。ここで、’ナビゲーションメニュー項目’オプションを設定し、’エクスポートファイルをダウンロード’ボタンをクリックします。
そうすると、ナビゲーションメニューがコンピューターに.xmlファイルとして保存されます。その後、ツール ” インポートページにアクセスして、ナビゲーションメニューを新規サイトにインポートすることができます。
ここで、WordPressオプションの下にある「今すぐインストール」と「インポーターを実行」のリンクをクリックする必要があります。
ナビゲーションメニューファイルをコンピューターから簡単にインポートすることができます。
これでWordPressサイトへのナビゲーションメニューのインポートとエクスポートが完了しました。
詳しい手順は、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.
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!
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?
WPBeginner Support says
It is limited to WordPress themes using the customizer
管理者
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
WPBeginner Comments says
This is designed to use with the same theme or child theme of the original theme.
Dennis Muthomi says
Wow, thanks for the reply! good to know it only works for the same theme or child themes.Appreciate you clarifying
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.
WPBeginner Support says
For staging alternatives we would recommend taking a look at our article below:
https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/
You’re correct that the plugin from this guide is more for the settings in the customizer itself
管理者
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.
管理者
Saurabh says
Please tell: How to export plugins settings and import on another site
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.
管理者
eosteknologi says
Nice information …
WPBeginner Support says
Glad you like our content
管理者
Mail fo Family says
i cant find Export/Import option from the customization list
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
管理者
Salman Saleem says
Thank you so much for saving my day. Was thinking to migrate the whole site but this plugin is a saviour.
WPBeginner Support says
Glad our recommendation was helpful
管理者
Dan Norcott says
Thanks – very useful!
WPBeginner Support says
You’re welcome
管理者
Fejiro says
Please a search bar is showing in my customize theme page. Its blocking the save button. How do I remove it.
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.
WPBeginner Support says
Hi Ted,
Please share your feedback with plugin authors via support forum. May be they have something in work to remedy this.
管理者
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.
Ousman Faal says
This post was really helpful. I just used it and it worked like a charm.
Thanks a lot.