Risposte nei forum create
-
AutorePost
-
madamalePartecipante
ciao steveAgl, pessima info
devo capire cosa vogliono dal sito i colleghi, perchè se caricano senza logo nè disclaimer e poi però quando inviano li vogliono diventa un macello…
ciao!
madamalePartecipantegrazie elmanisero
anche per la cortesia del tuo post
risolto
madamalePartecipanteciao Titti,
ho modificato il file functions.php come mi hai consigliato ed ho seguito alla lettera le istruzioni in italiano fino al paragrafo “Template” escluso
Questo perchè andando nella pagina “Pannello di amministrazione > Aspetto > Temi” vedo lo stesso errore di prima
al momento nella cartella wp-contentthemestwentytwelve-child ho solo due files:
functions.php
style.css
cosa mi manca?
madamalePartecipanteCiao Titti,
grazie per le dritte.
Non ho letto la pagina in italiano perchè non sapevo esistesse, mi hanno consigliato quel link in inglese.
Se mi dai il link in italiano mi leggo pure quello.
Poi: funzionerà anche per forza ma a me da ancora lo stesso identico errore, vedi sotto.
Riassumendo: ho creato la cartella: wp-contentthemestwentytwelve-child
dentro adesso, su tuo consiglio, ho messo solo style.css e functions.php, con le modifiche che mi hai consigliato.
Nella cartella non c’è altro ma nella bacheca, sezione temi, ho ancora lo stesso errore…
So di essere io a sbagliare, potresti darmi qualche altra indicazione per correggere l’errore?
madamalePartecipanteho provato a creare un tema figlio ma evidentemente sto sbagliando qualcosa:
1. creato la nuova directory “twentytwelve-child”
2. in questa directory ho messo i due files necessari:
-
style.css
functions.php
3. come richiesto, style.css comincia con:
/*
Theme Name: Twenty Twelve Child
Theme URI: https://wordpress.org/themes/twentytwelve-child/
Description: Twenty Twelve Child Theme
Author: me
Author URI: https://wordpress.org/
Template: twentytwelve
Version: 1.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twentytwelve-child
*/
4. come richiesto, functions.php comincia con:
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
?>
<?php
function theme_enqueue_styles() {
$parent_style = 'parent-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style )
);
}
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
?>
5. nella nuova directory ho inserito anche i files che ho modificato:
content.php
footer.php
comments.php
header.php
MA, alla fine, in "Administration Panels > Appearance > Themes", vedo l'errore:
Tema corrotto:
Modello mancante. I temi devono avere un file di modello index.php . I temi Child devono avere una intestazione di modello nel foglio di stile style.css.
ma l'articolo "https://codex.wordpress.org/Child_Themes" non parla anche di index.php...
cosa sto sbagliando?madamalePartecipantema se aggiorno il tema perdo le varie modifiche che ho fatto (e di cui non ho tenuto traccia, se non nel backup che ho appena eseguito…)
lo so, non sono stato furbo, in ogni caso non credo sia un problema del tema, ma mio o meglio di qualcosa che ho toccato
come posso capire dove sta il baco?
madamalePartecipantegrazie mille per l’info!
il tema è Twenty Twelve, Versione 1.9
come trovo l’autore?
-
AutorePost