discovery child theme css
-
Hi
I set up a child theme for the theme Discovery. I try to make changes (css) in the stylesheet (child theme), but the changes don’t apply. Here’s what my style.css and functions.php looks like:
style.css
/*
Theme name: Discovery Child Theme
Template: discovery
*//* ================= theme customization ======================== */
body.custom-background {
background-color: #000;
}functions.php
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’, get_stylesheet_uri(), array( ‘parent-style’ ) );
}Am I doing something wrong? Please help/advise
The topic ‘discovery child theme css’ is closed to new replies.