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サイトで使用する方法を紹介します。

Editing child themes

動画チュートリアル

Subscribe to WPBeginner

動画が気に入らなかったり、もっと説明が必要な場合は、このまま読み進めてください。

はじめに

子テーマは WordPress テーマをカスタマイズしたり変更したりするための最も安全な方法です。子テーマの詳細については、WordPress子テーマの作成方法の投稿をご覧ください。

子テーマは完全に移植可能で、好きなだけ多くのサイトで使用できます。ダウンロードして別のWordPressサイトにインストールすることもできます。一定の基準を満たしていれば、WordPressのテーマディレクトリに子テーマを送信して、他の人に使ってもらうこともできます。

子テーマを移動する前に、WordPressテーマを変更する前に必ずやっておくべきことのチェックリストと、WordPressテーマを適切に切り替える方法をご覧ください。これらの投稿は、気をつけるべきテーマ固有の設定についての一般的なアイデアを与えてくれるでしょう。

最後に、最も重要なことですが、何らかのアクションを実行する前に、両方のサイトのWordPressのバックアップが完全に取れていることを確認してください。

WordPress子テーマの移動

まず最初に、FTPクライアントを使用してサイトに接続し、/wp-content/themesディレクトリを参照します。次に、子テーマと親テーマのフォルダーをコンピューターにダウンロードします。

Downloading your parent and child themes

次のステップは、FTPクライアントを使用して子テーマをインストールしたいWordPressサイトに接続することです。wp-content/themes/ディレクトリを参照し、先ほどダウンロードした子テーマフォルダーと親テーマフォルダーの両方を新しいサイトにアップロードします。

次に、子テーマをインストールしたいサイトの管理エリアにログインし、外観 ” テーマにアクセスします。親テーマと子テーマの両方がインストールされているのが確認できるだろう。

Previewing a theme before activation

子テーマの下にあるライブプレビューボタンをクリックして、すべてが期待通りに動作していることを確認してください。満足したら、新しいWordPressサイトで子テーマを安全に有効化することができます。

この投稿が、子テーマを別のWordPressサイトで使用する方法を学ぶのにお役に立てば幸いです。43の美しい無料WordPressブログテーマの厳選リストもご覧ください。

この投稿が気に入ったなら、WordPressの動画チュートリアルをYouTubeチャンネルに登録してください。Twitterや Facebookでもご覧いただけます。

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 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 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. Joshua Mad says

    I see that’s how you install a child theme but I cant see to overwrite the code of the parent theme. I have installed a black theme with the correct labels and names, but still things will not change. Am i missing something? Can you show me an example of a child theme in use not how to install?

  3. cris pey says

    hi there,

    thanks for the tutorial! my question is, don’t we need to change various url’s and links to correspond with the new site before uploading to a different domain? so could benefit from some sort of migration plugin?

    i’m about to do this and am stuck between conflicting ideas on the best way to go about it. i like your ideas best so i hope you can answer this for me and everything then goes smoothly….

    thank you very much!

    cris

    • WPBeginner Support says

      If your child theme is properly coded, then it should not have any direct links. If it does have direct links, instead of WordPress functions to fetch relevant URLs, then you will need to fix that.

      管理者

  4. Hemang Rindani says

    WordPress is a great CMS that comes with set of frameworks, themes, modules and plugins to implement any complex business requirements. It is a flexible platform that allows a CMS developer to customize any functionality according to the requirements. A child theme in WordPress allows a developer to inherit all the functionality, features, and the code of the parent theme without making any changes to the parent theme itself. This feature helps to create a theme that is most suitable to a business without compromising on security. For large organization with multiple websites, WordPress provides an option to use the same child theme with other websites to better the consistency among different websites. The child themes can be modified further as per the requirements. I feel this to be a great feature that even CMS development companies can adopt to deliver websites with great features.

  5. Sue Loncaric says

    Thank you for the information. I actually have a wordpress child theme and I used the child themify plugin. However, the theme Bouquet I’m using won’t seem to save any changes I make in the child theme. Any suggestions? I would really appreciate any assistance you could give. I’m not that tech savvy which may be a problem.

  6. Tony Franco says

    Hello!

    Nice information, Thanks!

    Please, if i have some plugin updates, is there a way to test the updates firstly at child theme?

    How would this works, is it possible?

    Thanks and Regards,

    Tony

返信を残す

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