Child theme not working
-
Hey guys,
I’m trying to install a child theme but it’s not taken into account. I think all the steps from the child theme codex. Can you tell me where is my mistake? Here is what I have:
functions.php
<?php function my_theme_enqueue_styles() { $parent_style = 'parent-style'; // This is 'shoreditch' for the Shoreditch theme. 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 ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); ?>
style.css:
/* Theme Name: Shoreditch Child Theme URI: https://openclassrooms-project-2-cellendhyll82.c9users.io/shoreditch-child/ Description: Shoreditch Child Theme Author: Cellendhyll Author URI: https://openclassrooms-project-2-cellendhyll82.c9users.io Template: shoreditch Version: 1.0.0 License: GNU General Public License v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: shoreditch-child */ /* =Theme customization starts here -------------------------------------------------------------- */
Thx ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Child theme not working’ is closed to new replies.