{"id":68295,"date":"2016-07-15T14:02:53","date_gmt":"2016-07-15T21:02:53","guid":{"rendered":"https:\/\/dhblog.dream.press\/blog\/?p=68295"},"modified":"2025-06-11T13:23:08","modified_gmt":"2025-06-11T20:23:08","slug":"perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it","status":"publish","type":"post","link":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/","title":{"rendered":"Perch\u00e9 Hai Bisogno di un Tema Child e Come Crearne Uno Tuo"},"content":{"rendered":"\n<p><i><\/i>Immagina questo: hai trovato il tema perfetto per il tuo blog <a href=\"\/hosting\/wordpress\/\">WordPress<\/a>. Beh, quasi perfetto. Dopo aver modificato il font del menu da Times New Roman a Open Sans e cambiato il colore di sfondo della barra laterale da verde a blu celeste, si adatta esattamente alla tua visione. Fino a due settimane dopo, quando il creatore del tema rilascia una nuova versione con un aggiornamento di sicurezza essenziale. Aggiorni il tuo tema solo per notare che \u2014 puff! \u2014 le tue modifiche personalizzate sono tutte scomparse.<\/p>\n\n\n<p>Fortunatamente, non devi passare le tue giornate a reimplementare le tue modifiche e a temere i nuovi aggiornamenti. C&#8217;\u00e8 un modo pi\u00f9 semplice per <a href=\"https:\/\/www.dreamhost.com\/blog\/17-expert-blogging-tips-for-2017\/\">personalizzare il tuo blog<\/a> mantenendo gran parte dell&#8217;aspetto e della sensazione che ami: puoi creare un tema &#8220;child&#8221;, che eredita la funzionalit\u00e0 del tema &#8220;parent&#8221; aggiungendo quelle modifiche di stile che sono uniche per te. Anche se aggiorni il tema parent, il tema child mantiene le tue modifiche per tutto il tempo che desideri.<\/p>\n\n\n<p>\u00c8 sufficiente un file .css per trasformare un <a href=\"https:\/\/www.dreamhost.com\/blog\/guidelines-for-choosing-a-wordpress-theme\/\">tema WordPress<\/a> regolare in un tema child personalizzato, e serve meno codice di quanto pensi. Di seguito trovi una guida passo passo per creare un tema child partendo da qualsiasi tema WordPress regolare che hai gi\u00e0 in mente.<\/p>\n\n\n<p>Nota: Questo \u00e8 un tutorial intermedio che presume che tu conosca almeno un po&#8217; di HTML e CSS. Non \u00e8 necessario essere un esperto, ma modificheremo il codice di un tema. Se non ti senti ancora a tuo agio con questo, potresti voler consultare il <a href=\"http:\/\/www.w3schools.com\/css\/\">tutorial gratuito di CSS di W3Schools<\/a> o iscriverti al <a href=\"https:\/\/www.codecademy.com\/learn\/web\">percorso web gratuito di HTML\/CSS di Codecademy<\/a>.<\/p>\n\n\n<p><span style=\"font-weight: 400;\"><\/span><\/p>\n\n\n\n\n\n\n<div\n\tclass=\"article-cta-shared article-cta-small\"\n>\n    <div class=\"tr-img-wrap-outer jsLoading\"><img decoding=\"async\" class=\"js-img-lazy \" src=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/lazy-loading-transparent.webp\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/article-small-ad-cta-placeholder.webp 1x, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/article-small-ad-cta-placeholder-x2.webp 2x\"  alt=\"Ad background image\" \/><\/div>\n\n\n\n\n  <div class=\"content-btm\">\n    <h2\n      class=\"h2--md\"\n    >\n      WordPress + DreamHost\n    <\/h2>\n    <p\n      class=\"p--md\"\n    >\n      I nostri aggiornamenti automatici e solide difese di sicurezza tolgono dalla tua mente la gestione del server cos\u00ec puoi concentrarti sulla creazione di un sito web fantastico.\n    <\/p>\n\n            <a\n            href=\"https:\/\/www.dreamhost.com\/wordpress\/\"\n                        class=\"btn btn--white-outline btn--sm btn--round\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Scopri i Piani                    <\/a>\n\n  <\/div>\n<\/div>\n\n<h2 id=\"h-1-begin-with-a-parent-theme-and-plan-your-changes\" class=\"wp-block-heading\">1. Inizia Con Un Tema Parent E Pianifica Le Tue Modifiche<\/h2>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"641\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/twenty-sixteen-1024x641.png\" alt=\"Tema WordPress TwentySixteen\" class=\"wp-image-12960 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/twenty-sixteen-1024x641.png 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/twenty-sixteen-300x188.png 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/twenty-sixteen-768x481.png 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/twenty-sixteen-1536x962.png 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/twenty-sixteen-2048x1283.png 2048w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/twenty-sixteen-600x376.png.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/twenty-sixteen-1200x752.png.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/twenty-sixteen-730x457.png.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/twenty-sixteen-1460x915.png.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/twenty-sixteen-784x491.png.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/twenty-sixteen-1568x982.png.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/twenty-sixteen-877x549.png.webp 877w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/twenty-sixteen-1754x1099.png.webp 1754w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/641;\" \/><\/figure><\/div>\n\n<p>Questo \u00e8 <a href=\"https:\/\/wordpress.org\/themes\/twentysixteen\/\">Twenty Sixteen<\/a>, il tema che WordPress.org ha creato e rilasciato per quest&#8217;anno. Se stai cercando un tema base su cui apportare modifiche, considera sicuramente di dare un&#8217;occhiata alle loro uscite annuali, come Twenty Fifteen, Twenty Fourteen, e cos\u00ec via.<\/p>\n\n\n<p>Per la maggior parte mi piace, ma voglio apportare alcune modifiche. Quel bordo nero \u00e8 troppo forte per me, e vorrei che fosse blu. Vorrei anche <a href=\"https:\/\/www.dreamhost.com\/blog\/how-typography-affects-website-conversions\/\">cambiare il carattere<\/a>.<\/p>\n\n\n<p>Per prima cosa, apro gli Strumenti per Sviluppatori di Chrome andando su Visualizza \u2192 Sviluppatore \u2192 Strumenti per Sviluppatori nel menu del browser Chrome. (Se preferisci Firefox, puoi andare su Strumenti \u2192 Sviluppatore Web \u2192 Ispettore nel menu di Firefox.)<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"641\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/developer-tools-1024x641.png\" alt=\"Strumenti per Sviluppatori WordPress\" class=\"wp-image-12956 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/developer-tools-1024x641.png 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/developer-tools-300x188.png 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/developer-tools-768x481.png 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/developer-tools-1536x962.png 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/developer-tools-2048x1283.png 2048w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/developer-tools-600x376.png.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/developer-tools-1200x752.png.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/developer-tools-730x457.png.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/developer-tools-1460x915.png.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/developer-tools-784x491.png.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/developer-tools-1568x982.png.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/developer-tools-877x549.png.webp 877w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/developer-tools-1754x1099.png.webp 1754w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/641;\" \/><\/figure><\/div>\n\n<p>Gli strumenti per sviluppatori mi permettono di ispezionare il tema e vedere da dove provengono le &#8220;regole&#8221;. Manipolando la giusta classe CSS, posso capire cosa dovr\u00f2 inserire nel mio tema child per apportare le mie modifiche. Ad esempio, puoi vedere che modificando il colore di sfondo in #0099ff, posso cambiare il bordo da nero a blu. Ovviamente, gli strumenti per sviluppatori sono solo per giocare temporaneamente, e quando aggiorno questa pagina, il bordo torner\u00e0 nero.<\/p>\n\n\n<h2 id=\"h-2-create-your-child-theme-folder-and-files\" class=\"wp-block-heading\">2. Crea La Cartella E I File Del Tuo Tema Child<\/h2>\n\n\n<p>\u00c8 importante etichettare con attenzione il tuo tema child, cominciando dal nome della cartella in cui lo inserisci. In questo modo, WordPress sa come identificarlo automaticamente. Aggiungere \u201c-child\u201d alla fine del nome del tema originale \u00e8 la prassi migliore. Quindi nel mio caso, dato che Twenty Sixteen si trova dentro una cartella chiamata \u201ctwentysixteen\u201d, io chiamo la mia cartella \u201ctwentysixteen-child\u201d.<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"746\" height=\"272\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/folders.png\" alt=\"Cartelle dei Temi WordPress\" class=\"wp-image-12958 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/folders.png.webp 746w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/folders-300x109.png 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/folders-600x219.png.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/folders-730x266.png.webp 730w\" data-sizes=\"(max-width: 746px) 100vw, 746px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 746px; --smush-placeholder-aspect-ratio: 746\/272;\" \/><\/figure><\/div>\n\n<p>Il primo file che devo creare \u00e8 <b>style.css<\/b>, un file css che include informazioni rilevanti sul mio tema e lo stile personalizzato che voglio aggiungere al suo aspetto.<\/p>\n\n\n<p><code>\/*<br>\nTheme Name: Twenty Sixteen Child<br>\nTheme URI: http:\/\/example.com\/twentysixteen-child\/<br>\nDescription: Il mio primo tema child, basato su Twenty Sixteen<br>\nAuthor: Lauren Orsini<br>\nAuthor URI: http:\/\/lorsini.com<br>\nTemplate: twentysixteen<br>\nVersion: 1.0.0<br>\nTags: due-colonne, blu, barra-laterale-destra<br>\nText Domain: twentysixteen-child<br>\n*\/<\/code><\/p>\n\n\n<p>Inizio compilando i dettagli necessari. Sono richiesti solo il &#8220;Nome del Tema&#8221; e il &#8220;Template&#8221;. WordPress deve conoscere il nome del tema e deve anche sapere quale tema considerare come genitore di questo tema, in questo caso, Twenty Sixteen. Il resto puoi compilarlo con le tue informazioni personalizzate, o lasciarlo in bianco. Infatti, questa struttura \u00e8 diventata standard per le persone interessate a pubblicare i loro temi su WordPress.org. Se stai solo costruendo il tuo tema child per uso personale, tutto ci\u00f2 di cui hai bisogno \u00e8 il nome del tema, la descrizione, l&#8217;autore, il template e la versione.<\/p>\n\n\n<p>Ora, devo aggiungere gli stili che voglio modificare. Voglio cambiare il bordo nero in blu e voglio cambiare il font dell&#8217;intestazione in Georgia. Il font dell&#8217;intestazione \u00e8 visualizzato in tre posti nel tema\u2014titolo del sito, titolo dell&#8217;articolo e titolo del widget, quindi devo assicurarmi di includere tutte e tre le classi CSS nel mio stile per influenzare tutte e tre le posizioni.<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"563\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/theme-style-1024x563.png\" alt=\"Tema WordPress\" class=\"wp-image-12959 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/theme-style-1024x563.png 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/theme-style-300x165.png 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/theme-style-768x422.png 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/theme-style-600x330.png.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/theme-style-1200x659.png.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/theme-style-730x401.png.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/theme-style-784x431.png.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/theme-style-877x482.png.webp 877w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/theme-style.png.webp 1438w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/563;\" \/><\/figure><\/div>\n\n<p>Dopo aver completato questo, il mio tema child \u00e8 funzionante. Potrei installarlo a questo punto, ma avrebbe solo due stili e il resto sarebbe predefinito. Non \u00e8 quello che voglio; desidero che il tema erediti gli stili di Twenty Sixteen. Quindi, ho bisogno di un secondo file, intitolato <b>functions.php<\/b>.<\/p>\n\n\n<p>Copia e incolla semplicemente il seguente codice nel file functions.php:<\/p>\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;amp;amp;amp;amp;lt;?php\nadd_action( &amp;#039;wp_enqueue_scripts&amp;#039;, &amp;#039;my_theme_enqueue_styles&amp;#039; );\nfunction my_theme_enqueue_styles() {\n    wp_enqueue_style( &amp;#039;parent-style&amp;#039;, get_template_directory_uri() . &amp;#039;\/style.css&amp;#039; );\n}\n<\/pre><\/pre>\n\n\n<p>Questa \u00e8 una funzione che metter\u00e0 in coda i file style.css del tema parent e del tema child. Mettere in coda qualcosa significa aggiungerlo alla coda di elementi simili da elaborare dal browser. Questa funzione si assicura che entrambi i set di stili vengano caricati nell&#8217;ordine corretto sullo schermo del visitatore.<\/p>\n\n\n<p>Un ultimo passaggio facoltativo \u00e8 creare un&#8217;immagine di 880&#215;660 (si raccomanda il formato file PNG) da uno screenshot del tuo tema child. In questo modo, se hai molti temi installati, potrai vedere come appare questo a colpo d&#8217;occhio.<\/p>\n\n\n<p><span style=\"font-weight: 400;\"><\/span><\/p>\n\n\n<h2 id=\"h-3-upload-your-child-theme-to-wordpress\" class=\"wp-block-heading\">3. Carica Il Tuo Tema Child Su WordPress<\/h2>\n\n\n<p>Ora ho una cartella, intitolata twentysixteen-child, che contiene due file \u2014 style.css e functions.php. \u00c8 ora di comprimere quella cartella in un file zip e caricarla sul mio sito.<\/p>\n\n\n<p>Naviga su Aspetto \u2192 Temi e seleziona &#8220;Aggiungi Nuovo&#8221;, il che ti permetter\u00e0 di caricare un file zip. WordPress prima verificher\u00e0 che il tema parent sia installato e, se lo \u00e8, dovresti essere autorizzato a caricare il tuo tema. Se il tema parent non viene trovato, non funzioner\u00e0.<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"641\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/uploaded-theme-1024x641.png\" alt=\"Tema Caricato WordPress\" class=\"wp-image-12961 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/uploaded-theme-1024x641.png 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/uploaded-theme-300x188.png 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/uploaded-theme-768x481.png 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/uploaded-theme-1536x962.png 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/uploaded-theme-2048x1283.png 2048w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/uploaded-theme-600x376.png.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/uploaded-theme-1200x752.png.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/uploaded-theme-730x457.png.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/uploaded-theme-1460x915.png.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/uploaded-theme-784x491.png.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/uploaded-theme-1568x982.png.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/uploaded-theme-877x549.png.webp 877w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/uploaded-theme-1754x1099.png.webp 1754w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/641;\" \/><\/figure><\/div>\n\n<p>Ora dovresti essere in grado di vedere il tuo tema nell&#8217;elenco dei temi caricati. Ecco come appare il mio quando ci clicco sopra. Nota che non ho aggiunto un&#8217;immagine di anteprima al mio tema, ma ha comunque funzionato. Ma vedi come include tutte le informazioni che ho inserito nel passaggio 2?<\/p>\n\n\n<p><span style=\"font-weight: 400;\"><\/span><\/p>\n\n\n\n\n\n\n<div\n\tclass=\"article-cta-shared article-cta-small\"\n>\n    <div class=\"tr-img-wrap-outer jsLoading\"><img decoding=\"async\" class=\"js-img-lazy \" src=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/lazy-loading-transparent.webp\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/article-small-ad-cta-placeholder.webp 1x, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/article-small-ad-cta-placeholder-x2.webp 2x\"  alt=\"Ad background image\" \/><\/div>\n\n\n\n\n  <div class=\"content-btm\">\n    <h2\n      class=\"h2--md\"\n    >\n      Ho Bisogno di un Tema Child?\n    <\/h2>\n    <p\n      class=\"p--md\"\n    >\n      Se hai bisogno di aiuto per trovare il pubblico giusto, scegliere il tema WordPress appropriato, o definire i valori del tuo marchio, possiamo aiutarti! Iscriviti al nostro riepilogo mensile per non perdere mai un articolo.\n    <\/p>\n\n            <a\n            href=\"http:\/\/messages.dreamhost.com\/public\/webform\/render_form\/0d5r88n319d4z8oihazkjsxjn2xwo\/0eb6cc6c0d15e420a3ff54f02356d3eb\/addcontact\"\n                        class=\"btn btn--white-outline btn--sm btn--round\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Iscrivimi                    <\/a>\n\n  <\/div>\n<\/div>\n\n<p>Attiva il tuo tema e, se tutto \u00e8 andato bene, dovresti essere in grado di vedere le tue modifiche completate dal vivo. Ecco fatto! Ho il nuovo colore del bordo e i font dell&#8217;intestazione che desideravo. Ancora meglio, anche se WordPress aggiorna il tema Twenty Sixteen, le mie modifiche non si sposteranno.<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"641\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site-1024x641.png\" alt=\"Sito Web WordPress Completato\" class=\"wp-image-12957 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site-1024x641.png 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site-300x188.png 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site-768x481.png 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site-1536x962.png 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site-2048x1283.png 2048w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/finished-site-600x376.png.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/finished-site-1200x752.png.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/finished-site-730x457.png.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/finished-site-1460x915.png.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/finished-site-784x491.png.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/finished-site-1568x982.png.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/finished-site-877x549.png.webp 877w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2016\/07\/finished-site-1754x1099.png.webp 1754w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/641;\" \/><\/figure><\/div>\n\n<p>Spero che questa guida ti abbia aiutato a capire quanto possa essere facile e utile avere un <a href=\"https:\/\/www.dreamhost.com\/blog\/manage-wordpress-themes-command-line-wp-cli\/\">tema child sul tuo blog WordPress<\/a>. \u00c8 un ottimo modo per proteggere il tuo tema per il futuro, cos\u00ec che rimanga bello e personalizzato, indipendentemente da ci\u00f2 che ti capita.<\/p>\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>Immagina questo: hai trovato il tema perfetto per il tuo blog WordPress. Beh, quasi perfetto. Dopo aver modificato il font del menu da Times New Roman a Open Sans e cambiato il colore di sfondo della barra laterale da verde a blu celeste, si adatta esattamente alla tua visione. Fino a due settimane dopo, quando il creatore del tema rilascia una nuova versione [\u2026]<\/p>\n","protected":false},"author":1062,"featured_media":12957,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_yoast_wpseo_metadesc":"Crea un tema child da qualsiasi tema WordPress regolare con questo tutorial passo dopo passo. Richiede meno codice di quanto pensi, promesso!","toc_headlines":"[[\"h-1-begin-with-a-parent-theme-and-plan-your-changes\",\"1. Inizia Con Un Tema Parent E Pianifica Le Tue Modifiche\"],[\"h-2-create-your-child-theme-folder-and-files\",\"2. Crea La Cartella E I File Del Tuo Tema Child\"],[\"h-3-upload-your-child-theme-to-wordpress\",\"3. Carica Il Tuo Tema Child Su WordPress\"]]","hide_toc":false,"footnotes":""},"categories":[15074,15058,15072],"tags":[],"class_list":["post-68295","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-decoding-wordpress-it","category-tutorials-it","category-wordpress-it"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.3 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Perch\u00e9 Hai Bisogno di un Tema Child e Come Crearne Uno Tuo - DreamHost Blog<\/title>\n<meta name=\"description\" content=\"Crea un tema child da qualsiasi tema WordPress regolare con questo tutorial passo dopo passo. Richiede meno codice di quanto pensi, promesso!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Perch\u00e9 Hai Bisogno di un Tema Child e Come Crearne Uno Tuo\" \/>\n<meta property=\"og:description\" content=\"Crea un tema child da qualsiasi tema WordPress regolare con questo tutorial passo dopo passo. Richiede meno codice di quanto pensi, promesso!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/\" \/>\n<meta property=\"og:site_name\" content=\"DreamHost Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DreamHost\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-15T21:02:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-11T20:23:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2698\" \/>\n\t<meta property=\"og:image:height\" content=\"1690\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jason Cosper\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:site\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jason Cosper\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Perch\u00e9 Hai Bisogno di un Tema Child e Come Crearne Uno Tuo - DreamHost Blog","description":"Crea un tema child da qualsiasi tema WordPress regolare con questo tutorial passo dopo passo. Richiede meno codice di quanto pensi, promesso!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/","og_locale":"en_US","og_type":"article","og_title":"Perch\u00e9 Hai Bisogno di un Tema Child e Come Crearne Uno Tuo","og_description":"Crea un tema child da qualsiasi tema WordPress regolare con questo tutorial passo dopo passo. Richiede meno codice di quanto pensi, promesso!","og_url":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/","og_site_name":"DreamHost Blog","article_publisher":"https:\/\/www.facebook.com\/DreamHost\/","article_published_time":"2016-07-15T21:02:53+00:00","article_modified_time":"2025-06-11T20:23:08+00:00","og_image":[{"width":2698,"height":1690,"url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site.png","type":"image\/png"}],"author":"Jason Cosper","twitter_card":"summary_large_image","twitter_creator":"@dreamhost","twitter_site":"@dreamhost","twitter_misc":{"Written by":"Jason Cosper","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/#article","isPartOf":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/"},"author":{"name":"Jason Cosper","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/person\/2273b8bf7336df78f6d99a89c17253c4"},"headline":"Perch\u00e9 Hai Bisogno di un Tema Child e Come Crearne Uno Tuo","datePublished":"2016-07-15T21:02:53+00:00","dateModified":"2025-06-11T20:23:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/"},"wordCount":1116,"publisher":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/#primaryimage"},"thumbnailUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site.png","articleSection":["Decodifica WordPress","Tutorial","WordPress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/","url":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/","name":"Perch\u00e9 Hai Bisogno di un Tema Child e Come Crearne Uno Tuo - DreamHost Blog","isPartOf":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/#primaryimage"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/#primaryimage"},"thumbnailUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site.png","datePublished":"2016-07-15T21:02:53+00:00","dateModified":"2025-06-11T20:23:08+00:00","description":"Crea un tema child da qualsiasi tema WordPress regolare con questo tutorial passo dopo passo. Richiede meno codice di quanto pensi, promesso!","breadcrumb":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/#primaryimage","url":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site.png","contentUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2016\/07\/finished-site.png","width":2698,"height":1690,"caption":"WordPress Finished Website"},{"@type":"BreadcrumbList","@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/perche-hai-bisogno-di-un-tema-child-e-come-crearne-uno-tuo-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dhblog.dream.press\/blog\/"},{"@type":"ListItem","position":2,"name":"Perch\u00e9 Hai Bisogno di un Tema Child e Come Crearne Uno Tuo"}]},{"@type":"WebSite","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#website","url":"https:\/\/www-dev.dreamhost.com\/blog\/","name":"DreamHost Blog","description":"","publisher":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www-dev.dreamhost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization","name":"DreamHost","url":"https:\/\/www-dev.dreamhost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","contentUrl":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","width":1200,"height":168,"caption":"DreamHost"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DreamHost\/","https:\/\/x.com\/dreamhost","https:\/\/www.instagram.com\/dreamhost\/","https:\/\/www.linkedin.com\/company\/dreamhost\/","https:\/\/www.youtube.com\/user\/dreamhostusa"]},{"@type":"Person","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/person\/2273b8bf7336df78f6d99a89c17253c4","name":"Jason Cosper","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/02\/IMG_4807-scaled.jpeg","url":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/02\/IMG_4807-scaled.jpeg","contentUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/02\/IMG_4807-scaled.jpeg","caption":"Jason Cosper"},"description":"Jason is DreamHost\u2019s WordPress Product Advocate, based out of Bakersfield, CA. He is currently working on making our DreamPress product even better. In his free time, he likes to curl up on the couch and watch scary movies with his wife Sarah and three very small dogs. Follow him on Twitter.","url":"https:\/\/www-dev.dreamhost.com\/blog\/author\/jasoncosper\/"}]}},"lang":"it","translations":{"it":68295,"de":54193,"en":12955,"pt":54222,"uk":54225,"es":54253,"pl":54256,"ru":54259,"fr":70185,"nl":70209},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/68295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/users\/1062"}],"replies":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/comments?post=68295"}],"version-history":[{"count":3,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/68295\/revisions"}],"predecessor-version":[{"id":72758,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/68295\/revisions\/72758"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/media\/12957"}],"wp:attachment":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/media?parent=68295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/categories?post=68295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/tags?post=68295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}