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

Come installare un tema figlio di WordPress

Nota editoriale: guadagniamo una commissione dai link dei partner su WPBeginner. Le commissioni non influenzano le opinioni o le valutazioni dei nostri redattori. Per saperne di più su Processo editoriale.

Volete installare un tema figlio sul vostro sito WordPress? I temi figlio sono ottimi per effettuare personalizzazioni, perché consentono di sfruttare le potenti funzionalità di un tema o di un framework padre. In questo articolo vi mostreremo come installare facilmente un tema figlio in WordPress.

How to Install a WordPress Child Theme

Che cos’è un tema figlio di WordPress?

I temi figlio di WordPress dipendono da un tema padre o da un framework di temi. I temi figlio prendono in prestito tutte le caratteristiche e l’aspetto del tema genitore e possono modificarle senza toccare il codice del tema genitore.

La maggior parte dei temi WordPress gratuiti e premium sono dotati di molte opzioni di personalizzazione. Tuttavia, a volte è necessario aggiungere manualmente del codice al tema.

Se aggiungete il codice direttamente ai file del vostro tema, le vostre modifiche verranno sovrascritte quando aggiornerete il tema. I temi figlio risolvono questo problema consentendo di aggiungere le personalizzazioni nel tema figlio. In questo modo, quando si aggiorna il tema principale, tutte le modifiche rimangono intatte.

I temi figlio sono più comunemente utilizzati con i framework di temi WordPress. Questi framework sono temi padre robusti che offrono una base solida su cui gli sviluppatori di temi possono costruire.

Genesis è uno di questi popolari framework di temi. Ci sono tonnellate di temi figlio disponibili per Genesis che si possono ottenere da StudioPress.

Per saperne di più sui temi figlio di WordPress, vi consigliamo di leggere il nostro articolo su Cos’è un tema figlio di WordPress? Pro, contro e altro ancora.

Volete personalizzare il vostro tema WordPress con un vostro tema figlio? Seguite le istruzioni della nostra guida passo passo su come creare un tema figlio di WordPress.

Detto questo, vediamo come installare facilmente un tema figlio di WordPress.

Passo 1. Installazione del tema figlio di WordPress

L’installazione del tema figlio di WordPress non è diversa dall’installazione di qualsiasi altro tema di WordPress.

Nell’area di amministrazione di WordPress, visitate la pagina Aspetto ” Temi e fate clic sul pulsante Aggiungi nuovo.

Add new WordPress theme

Esistono due metodi per installare il tema di WordPress.

Metodo 1: se il tema figlio è disponibile come tema gratuito nella directory dei temi di WordPress.org, potete cercarlo digitando il suo nome nella casella di ricerca.

Searching for a free WordPress child theme

Tra i risultati della ricerca, posizionate il mouse sul tema che stavate cercando e fate clic sul pulsante Installa.

WordPress scaricherà e installerà il tema figlio.

Cercherà anche il tema genitore richiesto. Se il tema padre è disponibile anche nella directory dei temi di WordPress.org, lo installerà automaticamente per voi.

Metodo 2: Se il tema figlio è stato fornito come file zip, è necessario fare clic sul pulsante “Carica tema”. Verrà visualizzata l’opzione di caricamento del tema.

Upload your child theme's zip file

Fare clic su Scegli file per selezionare il file zip del tema dal computer e quindi fare clic sul pulsante ‘Installa ora’.

WordPress caricherà il file zip del tema dal computer e lo installerà. Verrà inoltre verificato se il tema principale è installato. Se il tema principale è disponibile nella directory dei temi di WordPress.org, cercherà di installarlo. In caso contrario, verrà comunicato che è necessario installare manualmente il tema principale.

Installing child theme alone

Passo 2. Installazione del tema genitore di WordPress

WordPress cercherà automaticamente di installare il tema padre se è disponibile nella directory dei temi di WordPress.org. Se non riesce a installare il tema genitore, non sarà possibile attivare il tema figlio. Il tema figlio verrà visualizzato come non funzionante nella pagina dei temi.

Broken child theme

Ecco come installare il tema genitore. Per prima cosa visitate il sito web del tema principale e scaricate il file zip del tema.

Andare quindi alla pagina Aspetto ” Temi e fare clic sul pulsante Aggiungi nuovo.

Add new WordPress theme

Fare clic sul pulsante ‘Carica tema’. Verrà visualizzata l’opzione di caricamento del tema.

Fare clic sul pulsante Scegli file per selezionare il file zip del tema dal computer e quindi fare clic sul pulsante ‘Installa ora’.

Upload your parent theme's zip file

Dopo aver installato entrambi i temi, si può procedere all’attivazione del tema figlio.

Nota: tenere presente che non è necessario attivare il tema genitore per poter utilizzare il tema figlio.

Speriamo che questo articolo vi abbia aiutato a capire come installare un tema figlio di WordPress. Potreste anche voler consultare la nostra guida su come trovare i file da modificare nel tema di WordPress.

Se vi è piaciuto questo articolo, iscrivetevi al nostro canale YouTube per i video tutorial di WordPress. Potete trovarci anche su Twitter e Facebook.

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

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.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

27 commentiLascia una risposta

  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. Tamie says

    Thank you for this!

    I have a few questions:

    Can you install a child theme after you have already installed and configured a parent theme or will this undo all of your work?

    Do you really need a child theme if you are only adding css under the customizer or will that remain in place over when you update your theme?

    Also, if do need the child theme and you have placed css under the customizer on the parent, should you move it over to the child?

    • WPBeginner Support says

      You can install a child theme but you may need to set some of the settings in the original theme for your design.

      If you are only adding changes in the customizer then a child theme is not required.

      For safety, we would recommend moving CSS in the customizer on the parent to the child theme. :)

      Admin

  3. Rohit Patel says

    Great article. What happen if I am just using parent theme and not activate the child theme after install it.

  4. Hannah Joy says

    Thank you so much!!! Every other online tutorial was so confusing and added a lot of irrelevant detail or confusing and inapplicable info. I am creating a website for the first time and not trying to do anything fancy, I just want to get it right from the start. So grateful for pages like yours that break it down into easy to chew bits for us newbies!!

  5. Belinda Ciurleo says

    Thank you for sharing this, it is very helpful.
    I have one question..
    I have already installed the parent theme and created pages, menus, etc.
    I’ve come to installing the child theme because I need to create an endpoint in WooCommerce. I’ve done most of my site, just doing the finishing touches.

    When I deactivate the parent theme, and activate the child theme, will it keep all the work I’ve done? Or will I lose it all?

    • WPBeginner Support says

      You would keep all of your pages and content. Other customizations to styling may not transfer depending on the specific theme.

      Admin

  6. Annapurna Agrawal says

    Hey, I have this serious question. Which one should I opt for? Creating a child theme? or building a theme from scratch?

    If I create the theme from scratch, how do I manage the updates to functions in WP?

    If I create a child theme, I will basically have to update the entire style for my website.

    Help me get out of this!

    • WPBeginner Support says

      If you create a child theme it will use whatever customizations you’ve added and if you do not specify a style it will take that from the parent theme. Creating a new theme would require you to have a style rule for everything you want styled.
      You would update the functions as you would with any theme.

      Admin

  7. Allisa says

    Hi, I have installed both Genesis and child theme Essence. While I love the framework, I don’t care for my theme. Do you have any articles or suggestions on how to install & switch child theme’s? Thanks in advance!

  8. Susana says

    If I have already activated the parent theme should I deactivate it before installing and activating the child theme?

    • WPBeginner Support says

      Hi Susana,

      You can only activate one theme at a time in WordPress. When you install and activate the child theme it automatically deactivates the parent theme. You can also manually deactivate it if you want. However, you will need to keep the parent theme installed to use the child theme.

      Admin

      • Mayur Lokhande says

        I have installed Parent theme, I don’t know how to check weather I had installed child-theme or not. Why is there need to upload child theme. If one would not install child theme then what would happen?

        • Paul Mohan says

          The child theme makes it a lot easier to edit wordpress sites later without expert knowledge.

  9. Juan says

    How do I create a child theme if wordpress was not installed locally on my pc. During the installation I left the “Directory” section blank and I think that is why I do not have a local install. What are my options?

  10. Allan Seabrook says

    Hi Syed,

    Thanks for sharing this article. Recently, I have started experimenting with the “One-Click Child Theme” plugin by tychay. It hasn’t been updated in two years by the developer. but appears to work as documented.

    Have you had any experience with this plugin or anything similar?

    Thanks!
    Allan

  11. Anton says

    Hello,

    What should I do if I already use main parent theme? How can I add child one? Do you guys have guide for that too?))

  12. Markus Martin says

    Hi Syed. I don’t know if it is only me, but my customizations in style.css for child theme don’t work anymore and am forced to use the custom css in wordpress customise dashboard. Is there a difference and is that really ok?

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.