Tema child
-
Buongiorno, mi presento: quasi neofita.
Sto cercando di attivare un nuovo dominio, ho scelto il tema, ho creato il child.css e il file functions ma accade una cosa che non riesco a risolvere, modificando alcuni parametri nel child.css, tipo i font o i colori, e salvandole, alcune volte le modifiche vengono accettate altre volte no. Sono appena agli inizi delle modifiche e vorrei dei consigli prima di proseguire. ringrazio chi può aiutarmi
/*
Theme Name: donovan-child
Theme URI: http://serenalatini/donovan-child.css
Template: donovan
Author: Mazzolini
Description: Un child theme di donovan con un font diverso
Version: 1.0.1593786714
Updated: 2020-07-03 16:31:54
*/
.site-title a:link,
.site-title a:visited {
color: #000000;
}
.centered-theme-layout
.site-header
.header-main {
background-color: #FFFFFF;
}
.centered-theme-layout
.site-header .header-main {
background-color: #FFFFFF;
}ho notato che il file functions ha subito delle modifiche rispetto al file iniziale
// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED – Do not modify or remove comment markers above or below:if ( !function_exists( ‘chld_thm_cfg_locale_css’ ) ):
function chld_thm_cfg_locale_css( $uri ){
if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . ‘/rtl.css’ ) )
$uri = get_template_directory_uri() . ‘/rtl.css’;
return $uri;
}
endif;
add_filter( ‘locale_stylesheet_uri’, ‘chld_thm_cfg_locale_css’ );// END ENQUEUE PARENT ACTION
<?php
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_theme_style’ );
function enqueue_parent_theme_style() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}
- Il topic ‘Tema child’ è chiuso a nuove risposte.