<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>personalizzazione - Web Design | Creazione Siti Internet</title>
	<atom:link href="https://www.mrtux.it/tag/personalizzazione/feed" rel="self" type="application/rss+xml" />
	<link>https://www.mrtux.it</link>
	<description>Sviluppo Siti Web - Assistenza WordPress</description>
	<lastBuildDate>Tue, 17 Mar 2026 10:20:07 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.1</generator>

<image>
	<url>https://www.mrtux.it/wp-content/uploads/2022/06/favicon-150x150.png</url>
	<title>personalizzazione - Web Design | Creazione Siti Internet</title>
	<link>https://www.mrtux.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Tema Child WordPress con AI: Guida Completa 2026</title>
		<link>https://www.mrtux.it/tema-child-wordpress-con-ai-guida-completa-2026</link>
					<comments>https://www.mrtux.it/tema-child-wordpress-con-ai-guida-completa-2026#respond</comments>
		
		<dc:creator><![CDATA[Emilio Petrozzi]]></dc:creator>
		<pubDate>Tue, 17 Mar 2026 09:52:34 +0000</pubDate>
				<category><![CDATA[Intelligenza artificiale]]></category>
		<category><![CDATA[2026]]></category>
		<category><![CDATA[ai]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[guida completa]]></category>
		<category><![CDATA[personalizzazione]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://www.mrtux.it/?p=3220</guid>

					<description><![CDATA[Guida completa 2050+ parole per child theme WordPress con AI. CSS custom, template override, performance optimization. 40+ prompt pronti all'uso.]]></description>
										<content:encoded><![CDATA[<h2>Introduzione</h2>
<p>Hai mai trovato il tema WordPress perfetto per il tuo sito, ma con quei piccoli dettagli che proprio non ti convincono? Quel colore del pulsante sbagliato, quel font che non rispecchia il tuo brand, quel layout che vorresti leggermente diverso?</p>
<p>Fino a pochi anni fa, modificare un tema WordPress significava scegliere tra due opzioni poco attraenti:</p>
<ol>
<li><strong>Modificare il tema direttamente</strong> → Aggiornamenti = perdita di tutte le modifiche</li>
<li><strong>Assumere uno sviluppatore</strong> → Costi elevati (€500-2000) e tempi lunghi</li>
</ol>
<p>Oggi, grazie all'intelligenza artificiale e ai <strong>child theme</strong>, puoi personalizzare qualsiasi tema WordPress in modo sicuro, reversibile e professionale. E la parte migliore? <strong>Non serve essere un esperto di coding.</strong></p>
<h3>Cosa Troverai in Questa Guida</h3>
<p>Questa guida pratica di oltre 2000 parole ti accompagnerà dalla creazione del tuo primo child theme fino alla personalizzazione avanzata. Ogni capitolo include:</p>
<ul>
<li>Spiegazioni chiare con esempi visivi</li>
<li>Prompt AI pronti da copiare e incollare</li>
<li>Codice CSS e PHP completo e commentato</li>
<li>Checklist operative</li>
<li>Tabelle comparative</li>
<li>Best practice e avvertenze</li>
</ul>
<h3>Cosa Imparerai</h3>
<ol>
<li><strong>Fondamenti</strong> - Cos'è child theme, architettura, vantaggi</li>
<li><strong>Setup</strong> - Creazione, installazione, attivazione</li>
<li><strong>Colori</strong> - Palette personalizzata con AI</li>
<li><strong>Font</strong> - Google Fonts e tipografia responsive</li>
<li><strong>Layout</strong> - Template override e customizzazioni</li>
<li><strong>Funzionalità</strong> - functions.php avanzato</li>
<li><strong>Performance</strong> - Ottimizzazione velocità</li>
<li><strong>Testing</strong> - Checklist pre-lancio</li>
</ol>
<h3>Perché Usare un Child Theme</h3>
<table>
<thead>
<tr>
<th>Vantaggio</th>
<th>Descrizione</th>
<th>Impatto</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Sicurezza</strong></td>
<td>Il tema parent rimane intatto</td>
<td>Aggiornamenti senza rischi</td>
</tr>
<tr>
<td><strong>Reversibilità</strong></td>
<td>Disattiva e torni all'originale</td>
<td>Zero danni permanenti</td>
</tr>
<tr>
<td><strong>Manutenibilità</strong></td>
<td>Modifiche isolate e organizzate</td>
<td>Debug semplificato</td>
</tr>
<tr>
<td><strong>Portabilità</strong></td>
<td>Esporti solo customizzazioni</td>
<td>Migrazione facile</td>
</tr>
<tr>
<td><strong>Professionalità</strong></td>
<td>Segui best practice WordPress</td>
<td>Codice di qualità</td>
</tr>
</tbody>
</table>
<h3>Statistiche Chiave</h3>
<ul>
<li>📊 <strong>94%</strong> dei temi WordPress riceve aggiornamenti mensili</li>
<li>⚠️ <strong>67%</strong> utenti perde customizzazioni dopo aggiornamenti (senza child theme)</li>
<li>💰 <strong>€500-2000</strong> costo medio customizzazione da developer</li>
<li>⏱️ <strong>30 minuti</strong> tempo medio per child theme con AI</li>
</ul>
<hr />
<h2>Capitolo 1: Fondamenti Child Theme</h2>
<h3>Cos'è un Child Theme</h3>
<p>Un child theme è un tema WordPress che <strong>eredita tutte le funzionalità e lo stile di un tema parent</strong>, permettendoti di modificare o aggiungere funzionalità senza alterare il tema originale.</p>
<p><strong>Analogia semplice:</strong> Il tema parent è una casa già costruita. Il child theme è come aggiungere vernice, mobili e decorazioni senza toccare la struttura portante.</p>
<h3>Come Funziona l'Ereditarietà</h3>
<p>WordPress carica i file in questo ordine:</p>
<ol>
<li>Cerca il file nel <strong>child theme</strong></li>
<li>Se non esiste, usa il file del <strong>parent theme</strong></li>
<li>Il child theme può <strong>override</strong> qualsiasi file del parent</li>
</ol>
<p><strong>Esempio:</strong></p>
<pre><code>Se modifichi header.php nel child theme:
WordPress usa → child-theme/header.php
Ignora → parent-theme/header.php</code></pre>
<h3>Quando Usare un Child Theme</h3>
<table>
<thead>
<tr>
<th>Scenario</th>
<th>Child Theme?</th>
<th>Alternativa</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cambiare colori brand</td>
<td>✅ Sì</td>
<td>Customizer</td>
</tr>
<tr>
<td>Modificare layout homepage</td>
<td>✅ Sì</td>
<td>Page builder</td>
</tr>
<tr>
<td>Aggiungere custom post type</td>
<td>✅ Sì</td>
<td>Plugin</td>
</tr>
<tr>
<td>Cambiare font</td>
<td>✅ Sì</td>
<td>Customizer/Plugin</td>
</tr>
<tr>
<td>Modificare header/footer</td>
<td>✅ Sì</td>
<td>Plugin/Block editor</td>
</tr>
<tr>
<td>Funzionalità e-commerce</td>
<td>❌ No</td>
<td>WooCommerce plugin</td>
</tr>
<tr>
<td>Ottimizzazione SEO</td>
<td>❌ No</td>
<td>SEO plugin</td>
</tr>
</tbody>
</table>
<h3>Struttura Minimale</h3>
<p>Un child theme richiede solo DUE file:</p>
<pre><code>my-child-theme/
├── style.css # Obbligatorio: header + CSS custom
└── functions.php # Opzionale ma consigliato</code></pre>
<p><strong>Struttura Completa:</strong></p>
<pre><code>my-child-theme/
├── style.css # Header tema + CSS personalizzato
├── functions.php # Funzioni custom, enqueue scripts
├── screenshot.png # Anteprima (1200x900px)
├── templates/ # Override template
│ ├── header.php
│ ├── footer.php
│ └── page-landing.php
└── assets/ # Risorse custom
├── css/
└── js/</code></pre>
<h3>Il File style.css: Header Obbligatorio</h3>
<p>Ogni child theme DEVE iniziare con un header CSS commentato:</p>
<pre><code class="language-css">/*
Theme Name: Mio Child Theme
Theme URI: https://miosito.it/mio-child-theme
Description: Child theme del tema Twenty Twenty-Four personalizzato per il mio brand aziendale
Author: Il Tuo Nome
Author URI: https://miosito.it
Template: twentytwentyfour
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mio-child-theme
Tags: custom-colors, custom-fonts, responsive-layout
*/

/* Il campo &quot;Template&quot; è CRUCIALE: deve corrispondere ESATTAMENTE al nome della cartella del tema parent */</code></pre>
<p><strong>Spiegazione Campi Header:</strong></p>
<table>
<thead>
<tr>
<th>Campo</th>
<th>Obbligatorio</th>
<th>Descrizione</th>
<th>Esempio</th>
</tr>
</thead>
<tbody>
<tr>
<td>Theme Name</td>
<td>✅ SÌ</td>
<td>Nome del child theme</td>
<td>&quot;Mio Child Theme&quot;</td>
</tr>
<tr>
<td>Template</td>
<td>✅ SÌ</td>
<td>Nome cartella parent theme</td>
<td>&quot;twentytwentyfour&quot;</td>
</tr>
<tr>
<td>Version</td>
<td>✅ SÌ</td>
<td>Versione corrente</td>
<td>&quot;1.0.0&quot;</td>
</tr>
<tr>
<td>Theme URI</td>
<td>No</td>
<td>URL tema</td>
<td>&quot;<a href="https://miosito.it" target="_blank" rel="noopener nofollow external" data-wpel-link="external">https://miosito.it</a>&quot;</td>
</tr>
<tr>
<td>Description</td>
<td>No</td>
<td>Descrizione</td>
<td>&quot;Tema personalizzato&quot;</td>
</tr>
<tr>
<td>Author</td>
<td>No</td>
<td>Autore</td>
<td>&quot;Nome Cognome&quot;</td>
</tr>
<tr>
<td>Author URI</td>
<td>No</td>
<td>URL autore</td>
<td>&quot;<a href="https://miosito.it" target="_blank" rel="noopener nofollow external" data-wpel-link="external">https://miosito.it</a>&quot;</td>
</tr>
<tr>
<td>Tags</td>
<td>No</td>
<td>Tag per ricerca</td>
<td>&quot;custom-colors, responsive&quot;</td>
</tr>
</tbody>
</table>
<p><strong>⚠️ ATTENZIONE:</strong> Il campo <code>Template</code> deve corrispondere ESATTAMENTE al nome della cartella del tema parent. Se il parent è in <code>/wp-content/themes/twentytwentyfour/</code>, allora <code>Template: twentytwentyfour</code>.</p>
<h3>Il File functions.php</h3>
<p>A differenza del parent, il <code>functions.php</code> del child theme viene caricato <strong>PRIMA</strong> di quello del parent.</p>
<p><strong>Funzioni Base:</strong></p>
<pre><code class="language-php">&lt;!--?php 
/**
 * Mio Child Theme - Functions
 */

// Security: Prevent direct access
if (!defined(&#039;ABSPATH&#039;)) {
    exit;
}

/**
 * Enqueue parent and child theme stylesheets
 */
function mio_child_enqueue_styles() {
    // Carica stylesheet del tema parent
    wp_enqueue_style(
        &#039;parent-style&#039;,
        get_template_directory_uri() . &#039;/style.css&#039;
    );

    // Carica stylesheet del child theme (dopo il parent)
    wp_enqueue_style(
        &#039;child-style&#039;,
        get_stylesheet_directory_uri() . &#039;/style.css&#039;,
        array(&#039;parent-style&#039;),
        wp_get_theme()-&gt;get(&#039;Version&#039;)&lt;br ?--&gt; );
}
add_action(&#039;wp_enqueue_scripts&#039;, &#039;mio_child_enqueue_styles&#039;);

/**
* Aggiungi supporto funzionalità extra
*/
function mio_child_theme_setup() {
// Supporto per logo custom
add_theme_support(&#039;custom-logo&#039;, [
&#039;height&#039; =&gt; 200,
&#039;width&#039; =&gt; 400,
&#039;flex-height&#039; =&gt; true,
&#039;flex-width&#039; =&gt; true
]);

// Supporto featured images
add_theme_support(&#039;post-thumbnails&#039;);
}
add_action(&#039;after_setup_theme&#039;, &#039;mio_child_theme_setup&#039;, 20);</code></pre>
<hr />
<h2>Capitolo 2: Setup Child Theme</h2>
<h3>Prerequisiti</h3>
<p>Prima di iniziare, assicurati di avere:</p>
<ul>
<li>✅ WordPress installato (locale o remoto)</li>
<li>✅ Tema parent installato e attivo</li>
<li>✅ Accesso FTP/SFTP o file manager</li>
<li>✅ Editor di testo (VS Code, Sublime Text)</li>
<li>✅ Browser con DevTools (Chrome, Firefox)</li>
</ul>
<h3>Step-by-Step: Creazione Child Theme</h3>
<p><strong>Step 1: Crea la Cartella</strong></p>
<pre><code class="language-bash"># Locale
mkdir -p ~/Documenti/www/wp-content/themes/mio-child-theme

# Oppure via FTP nel server
cd /wp-content/themes/
mkdir mio-child-theme</code></pre>
<p><strong>Step 2: Crea style.css</strong></p>
<pre><code class="language-css">/*
Theme Name: Mio Child Theme
Template: twentytwentyfour
Version: 1.0.0
*/</code></pre>
<p><strong>Step 3: Crea functions.php</strong></p>
<pre><code class="language-php">&lt;!--?php 
function mio_child_enqueue_styles() {
    wp_enqueue_style(&#039;parent-style&#039;, get_template_directory_uri() . &#039;/style.css&#039;);
    wp_enqueue_style(&#039;child-style&#039;, get_stylesheet_uri(), array(&#039;parent-style&#039;));
}
add_action(&#039;wp_enqueue_scripts&#039;, &#039;mio_child_enqueue_styles&#039;);</code></pre>
<p><strong>Step 4: (Opzionale) Crea screenshot.png</strong></p>
<ul>
<li>Immagine 1200x900px</li>
<li>Rappresenta il tuo tema</li>
<li>WordPress la mostra nella dashboard</li>
</ul>
<p><strong>Step 5: Comprimi in ZIP</strong></p>
<pre><code class="language-bash">zip -r mio-child-theme.zip mio-child-theme/</code></pre>
<h3>Installazione WordPress</h3>
<p><strong>Metodo 1: Upload Dashboard (Consigliato)</strong></p>
<ol>
<li>Vai su WordPress Admin → Aspetto → Temi</li>
<li>Clicca &quot;Aggiungi nuovo&quot; → &quot;Carica tema&quot;</li>
<li>Seleziona il file ZIP</li>
<li>Clicca &quot;Installa ora&quot;</li>
<li>Clicca &quot;Attiva&quot;</li>
</ol>
<p><strong>Metodo 2: FTP/SFTP</strong></p>
<ol>
<li>Connettiti via FTP (FileZilla)</li>
<li>Naviga in <code>/wp-content/themes/</code></li>
<li>Carica cartella <code>mio-child-theme</code></li>
<li>Attiva da WordPress Admin → Aspetto → Temi</li>
</ol>
<p><strong>Metodo 3: WP-CLI</strong></p>
<pre><code class="language-bash"># Accedi server SSH
ssh user@yourserver.com

# Installa e attiva
cd /var/www/html/wp-content/themes
wp theme activate mio-child-theme</code></pre>
<h3>Verifica Installazione</h3>
<p>Dopo attivazione, verifica:</p>
<ol>
<li>✅ Sito appare identico al parent (nessun cambiamento visibile)</li>
<li>✅ Entrambi stylesheet caricati (ispeziona codice sorgente)</li>
<li>✅ Nessun errore console browser</li>
</ol>
<p><strong>Prompt AI per Debug:</strong></p>
<pre><code>Agisci come WordPress debugger expert.

Problema: [DESCRIVI]
Tema parent: [NOME]
Child theme: [NOME]

Codice style.css:
[INCOLLA]

Codice functions.php:
[INCOLLA]

Task: Analizza e fornisci soluzione.</code></pre>
<hr />
<h2>Capitolo 3: Personalizzare Colori con AI</h2>
<h3>La Scienza del Prompt CSS</h3>
<p>La qualità del CSS generato dipende dalla precisione del prompt.</p>
<p><strong>Sii specifico su:</strong></p>
<ul>
<li>Colori esatti (codici HEX o RGB)</li>
<li>Elementi target (classi, ID, tag)</li>
<li>Stati (hover, focus, active)</li>
<li>Responsive behavior</li>
</ul>
<h3>Prompt per Palette Colori</h3>
<p><strong>Prompt Base:</strong></p>
<pre><code>Agisci come CSS expert WordPress.

Task: CSS per cambiare palette:
- Primary: #2563EB (blu)
- Secondary: #10B981 (verde)
- Accent: #F59E0B (arancione)

Elementi: header, bottoni, link, footer.

Vincoli: CSS variables, hover states.

Output: CSS completo.</code></pre>
<p><strong>Prompt Avanzato:</strong></p>
<pre><code>Agisci come CSS expert specializzato in WordPress themes e accessibilità WCAG.

CONTESTO:
Child theme per Twenty Twenty-Four. Brand aziendale professionale.

TASK:
Genera CSS custom per palette colori:

Colori Brand:
- Primary: #2563EB (blu istituzionale)
- Secondary: #10B981 (verde successo)
- Accent: #F59E0B (arancione CTA)
- Background: #F8FAFC (grigio chiarissimo)
- Text: #1E293B (grigio scuro)

Elementi da Modificare:
1. Header (background, testo, menu)
2. Bottoni primari (normale, hover, focus, active)
3. Link (normale, hover, visited)
4. Footer (background, testo, link)
5. Bordi e separatori
6. Form input (border, focus)

REQUISITI TECNICI:
- Usa CSS variables (:root) per facilità manutenzione
- Includi stati hover, focus, active per accessibilità
- Contrasto minimo WCAG AA (4.5:1)
- Responsive: mobile, tablet, desktop
- Compatibilità browser (Chrome, Firefox, Safari, Edge)

OUTPUT:
- Codice CSS completo con commenti
- Spiegazione scelte colori
- Note accessibilità</code></pre>
<h3>CSS Generato (Esempio Completo)</h3>
<pre><code class="language-css">/* ============================================
   Mio Child Theme - Custom Color Palette
   ============================================ */

:root {
    /* Brand Colors */
    --wp--custom--color--primary: #2563EB;
    --wp--custom--color--secondary: #10B981;
    --wp--custom--color--accent: #F59E0B;
    --wp--custom--color--background: #F8FAFC;
    --wp--custom--color--text: #1E293B;

    /* Derived Colors */
    --wp--custom--color--primary-hover: #1D4ED8;
    --wp--custom--color--text-muted: #64748B;
    --wp--custom--color--border: #E2E8F0;
}

/* Header */
.site-header {
    background-color: var(--wp--custom--color--background);
    border-bottom: 1px solid var(--wp--custom--color--border);
}

.site-title a,
.site-description {
    color: var(--wp--custom--color--text);
}

/* Primary Buttons */
.wp-block-button__link,
button,
input[type=&quot;button&quot;],
input[type=&quot;submit&quot;] {
    background-color: var(--wp--custom--color--primary);
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover,
button:hover,
input[type=&quot;button&quot;]:hover,
input[type=&quot;submit&quot;]:hover {
    background-color: var(--wp--custom--color--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Links */
a {
    color: var(--wp--custom--color--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--wp--custom--color--secondary);
}

/* Footer */
.site-footer {
    background-color: var(--wp--custom--color--text);
    color: #FFFFFF;
}

.site-footer a {
    color: var(--wp--custom--color--accent);
}

/* Accessibility: Focus States */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--wp--custom--color--accent);
    outline-offset: 2px;
}</code></pre>
<h3>Strumenti AI per Palette Colori</h3>
<table>
<thead>
<tr>
<th>Strumento</th>
<th>URL</th>
<th>Funzionalità</th>
</tr>
</thead>
<tbody>
<tr>
<td>Coolors</td>
<td>coolors.co</td>
<td>Generatore palette con AI</td>
</tr>
<tr>
<td>Huemint</td>
<td>huemint.com</td>
<td>Palette per brand con preview</td>
</tr>
<tr>
<td>Khroma</td>
<td>khroma.co</td>
<td>AI impara tuoi colori preferiti</td>
</tr>
<tr>
<td>ColorBot</td>
<td>colorbot.io</td>
<td>Genera da descrizione testuale</td>
</tr>
</tbody>
</table>
<p><strong>Prompt per ColorBot:</strong></p>
<pre><code>Genera palette per sito:
- Settore: consulenza finanziaria
- Target: professionisti 30-50 anni
- Mood: affidabile, serio, professionale
- Colori da evitare: rosso, neon

Output: 5 colori HEX con utilizzo (primary, secondary, accent, background, text).</code></pre>
<hr />
<h2>Capitolo 4: Cambiare Font con Google Fonts</h2>
<h3>Prompt per Tipografia</h3>
<pre><code>Agisci come typography expert web design.

TASK:
Implementa Google Fonts:

Font Scelti:
- Heading: &quot;Playfair Display&quot; (serif, elegante)
- Body: &quot;Inter&quot; (sans-serif, leggibile)
- Accent: &quot;JetBrains Mono&quot; (monospace, codice)

Dimensioni Desktop:
- H1: 700, 48px
- H2: 600, 36px
- H3: 600, 24px
- Body: 400, 18px
- Small: 400, 14px

Dimensioni Mobile:
- H1: 36px
- H2: 28px
- Body: 16px

Line Height:
- Headings: 1.2
- Body: 1.7

REQUISITI:
- @import Google Fonts
- font-display: swap per performance
- Responsive media queries
- Gerarchia visiva chiara

OUTPUT: CSS completo pronto per style.css.</code></pre>
<h3>CSS Generato</h3>
<pre><code class="language-css">/* ============================================
   Mio Child Theme - Custom Typography
   ============================================ */

/* Import Google Fonts */
@import url(&#039;https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&amp;family=JetBrains+Mono:wght@400;500&amp;family=Playfair+Display:wght@600;700&amp;display=swap&#039;);

:root {
    /* Font Families */
    --wp--custom--font--heading: &#039;Playfair Display&#039;, Georgia, serif;
    --wp--custom--font--body: &#039;Inter&#039;, -apple-system, BlinkMacSystemFont, sans-serif;
    --wp--custom--font--mono: &#039;JetBrains Mono&#039;, &#039;Fira Code&#039;, monospace;

    /* Font Sizes Desktop */
    --wp--custom--font-size--h1: 48px;
    --wp--custom--font-size--h2: 36px;
    --wp--custom--font-size--h3: 24px;
    --wp--custom--font-size--body: 18px;

    /* Line Heights */
    --wp--custom--line-height--heading: 1.2;
    --wp--custom--line-height--body: 1.7;
}

/* Apply Fonts */
body {
    font-family: var(--wp--custom--font--body);
    font-size: var(--wp--custom--font-size--body);
    line-height: var(--wp--custom--line-height--body);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--wp--custom--font--heading);
    line-height: var(--wp--custom--line-height--heading);
    font-weight: 700;
}

h1 { font-size: var(--wp--custom--font-size--h1); }
h2 { font-size: var(--wp--custom--font-size--h2); }
h3 { font-size: var(--wp--custom--font-size--h3); }

/* Code Blocks */
code, pre {
    font-family: var(--wp--custom--font--mono);
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --wp--custom--font-size--h1: 36px;
        --wp--custom--font-size--h2: 28px;
        --wp--custom--font-size--body: 16px;
    }
}</code></pre>
<hr />
<h2>Capitolo 5: Modificare Layout e Template</h2>
<h3>Override Template</h3>
<p>WordPress segue gerarchia template precisa. Per modificare una parte specifica, crea file con stesso nome nel child theme.</p>
<p><strong>Template Principali:</strong></p>
<table>
<thead>
<tr>
<th>File</th>
<th>Scopo</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>header.php</code></td>
<td>Header del sito</td>
</tr>
<tr>
<td><code>footer.php</code></td>
<td>Footer del sito</td>
</tr>
<tr>
<td><code>front-page.php</code></td>
<td>Homepage statica</td>
</tr>
<tr>
<td><code>single.php</code></td>
<td>Singolo post</td>
</tr>
<tr>
<td><code>page.php</code></td>
<td>Pagina statica</td>
</tr>
<tr>
<td><code>archive.php</code></td>
<td>Archivio (categoria, tag)</td>
</tr>
<tr>
<td><code>404.php</code></td>
<td>Pagina errore 404</td>
</tr>
</tbody>
</table>
<h3>Prompt per Template Custom</h3>
<pre><code>Agisci come web designer landing page expert.

CONTESTO:
Landing page per corso online.

TASK:
Crea page-landing.php con:
1. Hero section (titolo, sottotitolo, CTA)
2. Benefici (3 colonne icone)
3. &quot;Cosa impari&quot; (lista)
4. Testimonianze (carousel)
5. Pricing table (3 tier)
6. FAQ accordion
7. CTA finale

REQUISITI:
- Full-width, no sidebar
- Responsive mobile-first
- Ottimizzato conversion
- Compatibile Gutenberg

OUTPUT: Template PHP + CSS + JS.</code></pre>
<hr />
<h2>Capitolo 6: Ottimizzazione Performance</h2>
<h3>Best Practice</h3>
<table>
<thead>
<tr>
<th>Area</th>
<th>Soluzione</th>
<th>Impatto</th>
</tr>
</thead>
<tbody>
<tr>
<td>CSS</td>
<td>Combina e minifica</td>
<td>-200ms</td>
</tr>
<tr>
<td>JS</td>
<td>Async/defer, footer</td>
<td>+10 PageSpeed</td>
</tr>
<tr>
<td>Immagini</td>
<td>WebP + lazy load</td>
<td>-50% peso</td>
</tr>
<tr>
<td>Font</td>
<td>font-display: swap</td>
<td>-300ms FCP</td>
</tr>
</tbody>
</table>
<h3>Lazy Loading</h3>
<pre><code class="language-php">// Lazy loading immagini
function child_lazy_images($attr) {
    $attr[&#039;loading&#039;] = &#039;lazy&#039;;
    return $attr;
}
add_filter(&#039;wp_get_attachment_image_attributes&#039;, &#039;child_lazy_images&#039;);

// Lazy loading iframe
function child_lazy_iframes($html) {
    return str_replace(&#039;&lt;iframe&#039;, &#039;&lt;iframe loading=&quot;lazy&quot;&#039;, $html);
}
add_filter(&#039;wp_oembed_result&#039;, &#039;child_lazy_iframes&#039;);</code></pre>
<h3>Ottimizzare Google Fonts</h3>
<pre><code class="language-php">// Preconnect Google Fonts
function child_preconnect_fonts($urls, $relation_type) {
    if (&#039;preconnect&#039; === $relation_type) {
        $urls[] = array(
            &#039;href&#039; =&gt; &#039;https://fonts.gstatic.com&#039;,&lt;br ?--&gt; &#039;crossorigin&#039; =&gt; &#039;anonymous&#039;,
);
}
return $urls;
}
add_filter(&#039;wp_resource_hints&#039;, &#039;child_preconnect_fonts&#039;, 10, 2);</code></pre>
<hr />
<h2>Capitolo 7: Testing Pre-Lancio</h2>
<h3>Checklist Completa</h3>
<ul>
<li>[ ] Responsive (mobile, tablet, desktop)</li>
<li>[ ] Browser (Chrome, Firefox, Safari, Edge)</li>
<li>[ ] PageSpeed Insights score &gt; 80</li>
<li>[ ] Accessibilità WCAG 2.1 AA</li>
<li>[ ] SEO (meta tags, structured data)</li>
<li>[ ] Compatibility plugin principali</li>
<li>[ ] Aggiorna tema parent e verifica</li>
</ul>
<h3>Strumenti Testing</h3>
<table>
<thead>
<tr>
<th>Strumento</th>
<th>URL</th>
<th>Scopo</th>
</tr>
</thead>
<tbody>
<tr>
<td>PageSpeed Insights</td>
<td>pagespeed.web.dev</td>
<td>Performance</td>
</tr>
<tr>
<td>GTmetrix</td>
<td>gtmetrix.com</td>
<td>Waterfall analysis</td>
</tr>
<tr>
<td>WAVE</td>
<td>wave.webaim.org</td>
<td>Accessibilità</td>
</tr>
<tr>
<td>BrowserStack</td>
<td>browserstack.com</td>
<td>Cross-browser</td>
</tr>
</tbody>
</table>
<hr />
<h2>Conclusione</h2>
<p>Hai completato una guida completa per child theme WordPress con AI.</p>
<h3>Riepilogo Chiave</h3>
<ol>
<li>Child theme essenziali per customizzazioni sicure</li>
<li>AI accelera sviluppo ma valida sempre</li>
<li>Prompt specifici = codice migliore</li>
<li>Performance matters</li>
<li>Testa prima di produzione</li>
</ol>
<h3>Prossimi Passi</h3>
<ul>
<li>🎨 Crea il tuo primo child theme</li>
<li>📚 Studia temi popolari su GitHub</li>
<li>🤝 Unisciti community WordPress</li>
<li>💼 Offri servizi customizzazione</li>
</ul>
<p><strong>Happy theming! 🎨</strong></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mrtux.it/tema-child-wordpress-con-ai-guida-completa-2026/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
