[WP.org] my child theme doesn't work
-
i’ve created a child theme from the nightingale theme but when I try to change a propetry in nigthingale-child/style.css it doesn’t apply. For instance I’ve tried to change background-color of the body or display none for h1 markup just to see whether my child theme style.css works but nothing happens.
I’ve followed all steps for creating a child theme:
-new folder nightingale-child
-inside this foder I’ve added two files : function.php & style.css
here is my style.css :/*
Theme Name: nightingale-child
Theme URI: http://example.com/twenty-fifteen-child/
Description: nightingale Child Theme
Author: John Doe
Author URI: http://example.com
Template: nightingale
Version: 1.0.0
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: nightingalechild
*/a {
color: red;
}and here is my function.php:
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );function enqueue_parent_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}Does anybody know what's wrong with my nightingale-child theme ?
-
Bonjour. Vous êtes sur le forum WordPress.com. Nous sommes habilités à répondre uniquement aux questions sur les sites WordPress qui sont hébergés par WordPress.com.
Comme vous mentionnez un fichier .php, cela veut dire que votre site fonctionne lui aussi sous WordPress, mais il n’est pas hébergé sur les serveurs de WordPress.com. Veuillez donc reposer votre question à l’adresse : https://wpfr.net/support/
Pour mieux comprendre, je vous invite à lire attentivement cette annonce importante : https://wordpress.com/fr/forums/topic/important-ce-forum-est-reserve-aux-sites-heberges-par-wordpresscom/
Merci et bonne continuation.
- Le sujet ‘[WP.org] my child theme doesn't work’ est fermé aux nouvelles réponses.