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のテーマを変更したときに何が起こるかについてお答えします。

What happens when you switch your WordPress theme?

WordPressでテーマを変更するとどうなるか?

WordPressサイトのテーマの変更を検討している場合、テーマがどのような機能や特徴を担っているのかを知るのは難しいでしょう。

それは、WordPressテーマの中にはシンプルでミニマルなものがあり、基本的なデザイン以上の機能があまり含まれていないからです。他のWordPressテーマは多目的で、さまざまなテンプレート、カスタマイズ設定、サイトのカスタマイズに役立つ機能を備えています。

テーマに付属する機能によっては、テーマを変更することでコンテンツが失われたり、サイトのすべてが削除されたりすることを恐れるかもしれない。

幸いなことに、そのようなことはありません。テーマを切り替えても、サイトのコンテンツがすべて失われることはありません。

それでも、思っている以上のものを失うかもしれません。だからこそ、テーマを変更すると何が起こるのか、コンテンツを失うことなくWordPressのテーマを変更する方法を理解することが重要なのです。

とはいえ、WordPressテーマを変更すると何が起こるのか、順を追って説明しよう。

新規: WordPressテーマで変わるテーマメニュー

WordPressにはナビゲーションメニューシステムがビルトインされています。WordPressテーマごとに、これらのメニューの表示方法や使用方法は異なります。

WordPress navigation menu example

そのため、WordPressテーマを変更すると、新しいメニューの位置が表示されます。

以前、あるテーマの場所にメニューを割り当てていた場合、テーマの変更後にそのメニューを割り当て直す必要があります。

フルサイトエディターをサポートしているブロックテーマを使用している場合は、外観 ” エディターページにアクセスしてメニューを編集することができます。

Launch site editor in WordPress

サイトエディターインターフェースが起動します。

左のパネルからナビゲーションタブをクリックし、メニューを編集または追加する。

Add or edit navigation menus

メニュー項目を編集するにはポイント&クリック、項目を追加するには追加(+)ボタンをクリックするだけです。

終了したら、Saveボタンをクリックして変更を保存することを忘れないでください。

一方、クラシックテーマ(フルサイトエディターをサポートしていないテーマ)を使用している場合は、外観 ” メニューページからメニューを編集することができます。

上部のドロップダウンからメニューを選択するだけで読み込めます。

Select WordPress navigation menu

その後、メニューを表示したい場所にチェックを入れます。

個別メニューに複数の場所を選択することができます。

Select navigation menu location

詳しくは、WordPressでナビゲーションメニューを追加する方法の初心者向けガイドをご覧ください。

WordPressのウィジェット設定が変わる

ウィジェットを使用すると、WordPressテーマのサイドバー、フッター、その他のウィジェット対応エリアにさまざまな要素を追加できます。

WordPressテーマを変更すると、これらのウィジェットエリアは置き換えられ、有効化したウィジェットは無効化されます。

外観 ” ウィジェット“から “非アクティブウィジェット “セクションに進み、これらのウィジェットをサイトに戻すことができます。

Inactive widgets section

詳しくは、WordPressでウィジェットを追加・使用する方法をご覧ください。

使用しているテーマに独自のウィジェットが付属している場合、テーマを変更すると、これらのウィジェットは使用できなくなります。

WordPressテーマの設定が消える

WordPressテーマにはすべて異なるカスタマイズ設定がある。WordPressテーマカスタマイザーに頼るだけのテーマもあれば、テーマオプションパネルでコントロールするテーマもあります。

テーマオプションパネルは、あなたのサイトの多くの側面を次のようにコントロールすることができます:

  • サイトロゴ
  • ファビコン画像
  • ヘッダーとフッター
  • 背景画像
  • フォントの選択
  • さらに

Astraテーマのオプションパネルの例です。

Astra theme options panel example

また、オプションパネルに直接追加したWordPressアナリティクス、広告、その他のトラッキングコードも含めることができます。

テーマのオプションパネルで行ったこれらの設定はすべて消えてしまいます。

テーマを変更する前にWordPressテーマの変更リストを作成した場合は、新しいテーマでも同じ設定を試すことができます。ただし、新しいテーマでは機能のセットが異なる可能性があります。

ほとんどの場合、デザイン設定を失っても、サイトのスピードやパフォーマンス、検索エンジンのランキングに影響を与えることはありません。

ただし、お使いのテーマがテーマオプションパネルにアナリティクスやSEO設定をバンドルしている場合は、プラグインを使用してGoogleアナリティクスをインストールし、WordPressのSEOを最適化する必要があります。

解析には、WordPressに最適な解析プラグインMonsterInsightsの使用をお勧めします。テーマ設定の代わりにプラグインを使用することで、テーマを変更してもデータが失われることはありません。

検索エンジン最適化については、AIOSEOを使用することをお勧めします。AIOSEOは、300万以上のサイトで使用されている市場で最高のWordPress SEOプラグインです。

AIOSEO

複雑なテクニカルスキルを学ぶことなく、簡単にサイトを検索エンジンに最適化することができます。

詳しくは、All In One SEO for WordPressを正しく設定する方法をご覧ください。

functions.phpのコード・スニペットが機能しない

多くのサイトオーナーはWordPressにコードを追加することでテーマの機能をカスタマイズしている。

functions.phpファイルや他のテーマファイルに直接コードを追加した場合、テーマを変更してもこのコードは使用されません。

これらのテーマファイルに追加したコードスニペットをメモしておいてください。

あなたのサイトにスニペットを追加するより良い方法は、WPCodeのようなコードスニペットプラグインを使用することです。

WPCode Code Snippets Plugin

スニペットのWordPressへの貼り付け方法については、こちらをご覧ください。

テーマ別の投稿タイプとタクソノミーは消滅する

WordPressテーマの中には、サイトのデザインを変更するだけでなく、独自のカスタム投稿タイプやタクソノミーが付属しているものもあります。

これは通常、ポートフォリオ、書籍、証言などのコンテンツを表示するために行われる。

Custom post types example

あなたのテーマがカスタム投稿タイプやタクソノミーを使用している場合、テーマを変更するとそれらにアクセスできなくなります。

それらはWordPressのデータベースに保存されたままですが、新しいテーマでそれらを表示するには追加のカスタマイザーが必要です。

そのため、テーマではなくWordPressプラグインを使ってこれらの機能を追加することをお勧めします。そうすることで、WordPressテーマを変更しても簡単に使い続けることができます。

必要な機能のプラグインを見つけるには、WordPressのエキスパートが選んだベストプラグインをご覧いただくか、Googleで検索して「WPBeginner」を検索に加えるだけで、試行錯誤を重ねたおすすめのプラグインを見つけることができます。

WordPressテーマ固有のスライダーが消える

多くのWordPressテーマには、全画面のホームページスライダーを追加するためのスライダー設定がビルトインされています。テーマを切り替えると、これらのスライダーは消えてしまいます。

Built-in WordPress slider example

サイト上の任意の場所にスライダーを追加したい場合は、WordPressスライダープラグインを使用することをお勧めします。詳しくは、最高のWordPressスライダープラグインの比較をご覧ください。

WordPressテーマ固有のショートコードが消える

ショートコードは、投稿、ページ、ウィジェットエリアに新しい機能を追加する方法を提供します。

多くの人気WordPressテーマには、以下のような機能を追加するための独自のショートコードが付属しています:

WordPressテーマを変更すると、これらのショートコードは機能しなくなります。その結果、ショートコードは単にコンテンツエリア内のテキストとして表示されます。

テーマのショートコードに将来性を持たせたい場合は、代わりにサイト固有のプラグインを使ってコードを追加することができる。これにより、テーマを切り替えても変更されないカスタマイズをプラグインで追加できる。

詳しくは、サイト固有のWordPressプラグインの作成方法をご覧ください。

WordPressテーマを変更しても変わらないものは?

WordPressテーマを切り替えても、WordPressブログのいくつかの部分は変わりません。例えば、WordPressの投稿やページはテーマの切り替えの影響を受けません。

WordPress posts and pages stay the same

ただし、旧テーマの投稿日、画像、添付ファイル、ページの表示方法によっては、若干異なって見えるかもしれません。

メディアライブラリも変わりません。ただし、WordPressテーマでは、アイキャッチ画像とサムネイル画像のサイズが異なる場合があります。

この場合、適切な画像サイズを表示するためにサムネイルを再生成する必要があるかもしれません。

パーマリンクや表示設定など、WordPressの一般的な設定はすべてそのままです。

インストールした他のWordPressプラグインでも同じですが、新しいテーマでは機能が異なる場合があります。

WordPressテーマを切り替えるには?

WordPressテーマを変更する前に、スムーズでエラーのない体験にするためにやっておくべきことがいくつかあります。

まず、WordPressバックアッププラグインを使用して、完全なサイトのバックアップを作成することが非常に重要です。これにより、投稿、ページ、プラグイン、メディア、データベースのコピーが保存されます。

Duplicatorは市場で最高のWordPressバックアッププラグインの一つです。

ヘルプが必要ですか?Duplicator を使って WordPress サイトをバックアップする方法をご覧ください。

サイトのバックアップが取れたら、現在のテーマを見直すのに時間をかけるべきだ。

カスタムCSSやウィジェットなど、新しいテーマに追加できるカスタマイザーをメモしておくことができます。

Review WordPress theme customizations

詳しくは、WordPressテーマを変更する前にやるべきことのチェックリストをご覧ください。

新しい WordPress テーマを有効化する前に、ビルトインのプレビュー機能を使ってどのように見えるかを確認することができます。WordPressでは、フロントエンドで有効化しなくても、リアルタイムでテーマをインストールしてプレビューすることができます。

外観 ” テーマにマウスオーバーし、「ライブプレビュー」ボタンをクリックするだけで、テーマがどのように見えるかを確認できます。

WordPress theme preview

テーマをプレビューする際には、視覚的な変更が反映されることに注意してください。

左側のメニューから、サイトのトップページ、投稿日、その他のページ、アーカイブなどを閲覧することができます。

Preview and test new WordPress theme

その後、新テーマの設定やレイアウトを、旧サイトの機能のうち残す価値のあるものと一致するように調整できるかどうかを判断します。

詳しくは、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

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

  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. Jiří Vaněk says

    Great. Sometimes our customers ask us what happens when they change the theme and whether it will be easy to revert to the original without damaging the website and graphics. Even though I always told them yes, that there is no significant risk, I wasn’t sure if I was completely right. Thanks for this article, which I can now refer to. Excellent job.

  3. Moinuddin Waheed says

    The main concern when I switch fro one theme to other as I have done has been the content specially the blog posts and pages content.
    It is good to realise that whatever be the theme they will have minimal to no impact on content. May be visual appearance may change and that is fine. in fact that is the reason why anyone would want to change to other themes.
    Thank you wpbeginner for making clear all possible consideration for changing a theme.

  4. Nadiia says

    Hello!
    I already changed a theme, I did that before and I know that need to work on settings, but I was thinking to pick an actual site template, will It impact somehow on my posts and media? I mean will I lose it? I did not import the website but do I need to press on “delete a previously imported site?

    • WPBeginner Support says

      That would depend on your theme, some have templates that would overwrite and remove your old content if you reach out to your theme’s support they can clarify.

      管理者

    • WPBeginner Support says

      Unless the theme has a set of plugins to specifically accompany the theme, most if not all plugins will be unaffected by the change.

      管理者

  5. Sam Doying says

    Thank you for this content – it was very helpful. My question is this: I created my website about 2 years ago using the OceanWP theme. Now I’d like to do a complete from-scratch overhaul using the Hello Elementor theme. While I build my new site, I’d like my old site to just sit there, as is, and be available should someone want to visit. I don’t want it to adopt the new theme and be all funky because building the new site will take me a loooooooong time. Any way to do this? Thanks, Sam

  6. shanzah says

    hey i just wanted to ask that can I switch back to my custom made theme once I move to another theme? what if I want to come back to my previous theme? will it be saved in my database?

    • WPBeginner Support says

      When you change themes you should have the option to swap back later should you want.

      管理者

  7. Glen says

    Thank you for these great explanations. But my question is a bit ease: what happened if I just switch to the Child theme? will this break anything in my settings?

    • WPBeginner Support says

      While it should not break anything, depending on the child theme you would likely need to set your customizations.

      管理者

  8. Michal says

    Thanks, though I miss information about more aspects:
    – is changing theme destructive operation? Does it wipe some data from database, or can I switch safely back to original theme without data loss?
    – can I deactivate/delete old theme, then install/activate it back, and my website will look same as before, or not?
    – where actually theme-specific data are stored? per-theme database table, or files?

    • WPBeginner Support says

      Changing the theme would only remove data if your theme added custom post types which most themes shouldn’t. Deleting an old theme normally removes the information as that is a process normally included in the removal of a plugin or a theme. Where the data for the theme is stored depends on the specific theme.

      管理者

  9. Claudia says

    Hi, I just changed themes from Envo to Astra. The transition has been smooth so far but I got on the main menu the items I had on the Envo theme plus the items on the Astra menu so I have two home tabs one says original and the other has the URL of my website. Out of these two which one should I keep on the menu? or doesn’t matter?

  10. Taran jeet says

    First of all Thanks to Your Team. Because of Your Inspiration, I Made a Website. I Am using Hestia. but after a few days, I just randomly check the theme editor. There are 13 theme errors. I want to fix them. I saw ur comment above. But my question is what if I completely remove the theme and reinstall it will I lose all my settings of that theme? Or is there any safe way to fix those errors? Anyone Can help me?

    • WPBeginner Support says

      If you manually delete the theme in your wp-admin area it would remove the settings you had set for that theme

      管理者

  11. Michaela says

    And what if I just need to reinstall the same theme ? Would all settings and content stay ?
    Thank you ☺

  12. Nikita Smith says

    When doing this i seem to loose my “portfolio” does anyone have any tips on how to ensure this doesnt happen?

  13. Paul says

    I recently installed a new theme for my portfolio but none of the content is showing up on live preview but is showing
    up in the backend editor Deleting project content and entering in new data also does not make a difference.

    • WPBeginner Support says

      Hi Paul,

      It seems like you are using a page builder plugin. Please contact your theme developer for support and they will be able to help you out or contact the page builder plugin’s support for help.

      管理者

  14. GABRIELA MORENO says

    My question is, what happens to my old theme when I install the new one?

    Can I adjust the new theme without it being live?

    • WPBeginner Support says

      Hi Gabriela,

      Your old theme will be inactive but it will remain installed on your website unless you delete it. You can click on the preview button to see a live preview of the new theme on your website.

      管理者

    • Gabriel Marmitt says

      Hello guys.

      I use the Twenty Ten theme since I started my site in 2013, I already have 5 years of website! But now I see that it’s important to have a responsive, fast, and friendly topic with SEO. I tried to do a test with the Twenty Sixteen theme, it worked well apparently, but when I looked at the analytics report, I realized that I did not have a visit any more, I tried to access my page through the phone and I saw in the analytics real-time visualization tool that my visit came, so I do not know what might have caused it and what should I do? Grateful for the attention.

  15. mohamedali shurbaji says

    If i change theme, and things disappear in the new one, how i can clean up the mess and start again fresh since I am deep progress through the old one. Thank you.

  16. Rob Manser says

    How does changing themes impact the SEO rankings for single page posts, provided I am using permalinks?

    • WPBeginner Support says

      Hi Rob,

      It actually depends on your WordPress theme. If it follows the WordPress coding best practices than there will be no impact on SEO. If it is slower or faster than your previous theme, uses some poor design practices, have bad user experience, then these kind of things may also have a slight impact on your SEO.

      管理者

  17. Raddy says

    I would like to ask if I switch back to the theme againafter activating a new one is it going to keep its settings and customization or I should start from the begging ? Thanks

  18. Katie Keith says

    Useful article thanks. A lot of our WordPress clients think that changing theme is as simple as clicking a button and don’t realise that it can actually be days of work due to the theme-specific shortcodes, layouts, widgets etc. This is a good overview of the implications of changing theme.

  19. Connor Rickett says

    And some fine day, the “preview” button will actually output a result that matches what you’ll see when the theme has actually been switched.

  20. Mione C says

    Thank you so much for this great, detailed article. I will feel much more confident doing my upcoming theme change now! I’d been putting it off for too long. You guys rock!

  21. RW says

    Thanks for this. That’s why I take screen captures of all my settings and widget before I switch themes…

返信を残す

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