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

Så här använder du ditt barntema på en annan site i WordPress

Barnteman allow you to make changes and customize your WordPress theme without ever editing the main theme. Detta allow you att fortsätta få theme updates utan att förlora dina ändringar. Nyligen frågade en av våra Läsare oss hur han skulle gå tillväga för att använda sitt barntema på sin frus website. I den här artikeln kommer vi att visa dig hur du kan använda ditt barntema på en annan WordPress site.

Editing child themes

Tutorial i video

Subscribe to WPBeginner

Om du inte gillar videoklippet eller behöver fler instruktioner, fortsätt då att läsa.

Kom igång

Barnteman är det säkraste sättet att customize och göra ändringar i ett WordPress-tema. Ta en titt på vår artikel om hur man skapar ett WordPress-barntema för att lära dig mer om barnteman.

Barnteman är helt portabla, och du kan använda dem på så många webbplatser som du gillar. Du kan downloada dem och installera dem på en annan WordPress site. Du kan till och med submit your barntema till WordPress temakatalog så att andra kan använda det om det uppfyller vissa standarder.

Innan du flyttar ditt barntema kanske du vill ta en titt på vår checklista över saker du måste göra innan du byter WordPress-tema och hur du byter WordPress-teman på rätt sätt. Dessa artiklar ger dig en allmän uppfattning om temaspecifika inställningar som du behöver se upp med.

Sist men viktigast av allt, se till att du har en komplett WordPress backup av båda dina webbplatser innan du utför några actions.

Flytta ett WordPress barntema

Det första du behöver göra är att ansluta till din website med hjälp av en FTP-klient och browsing till /wp-content/themes directory. Därefter downloadar du både ditt barntema och mapparna för föräldratemat till din dator.

Downloading your parent and child themes

Nästa steg är att ansluta till den WordPress-webbplats där du vill installera ditt barntema med FTP-klienten. Browse to the /wp-content/themes/ directory and then upload both child and parent theme folders you downloaded earlier to the new site.

Logga nu in på admin area på den site där du vill installera barntemat och besök Appearance ” Themes. Du kommer att kunna se både huvudtema och barntema installerade där.

Previewing a theme before activation

Klicka på knappen för live preview under barntemat för att se till att allt fungerar som förväntat. När du är nöjd kan du aktivera barntemat på din nya site i WordPress.

Vi hoppas att den här artikeln hjälpte dig att lära dig hur du använder ditt barntema på en annan WordPress-webbplats. Du kanske också vill se vår handplockade lista över dessa 43 beautiful free WordPress blog themes.

Om du gillade den här artikeln, vänligen prenumerera på vår YouTube-kanal för WordPress video tutorials. Du kan också hitta oss på Twitter och Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

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.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

12 kommentarerLämna ett svar

  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.

      Administratör

  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

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.