Need help with a child theme
-
Hello, someone created the website based on the 2015 theme. They called it; for example; “new theme.” But it seems some things are linked so if the 2015 theme is not installed on the site then it says something is missing. So I re-installed 2015 on the site but had the “new theme” as active. I needed to make some changes to the “new theme” so I created a child theme called “new theme-child” but for some reason the style sheet is not loading last and is not overriding any of the styles from “new theme.” This is what is in my functions file:
<?php
/*——————————————————-
* new theme child by author; Child Theme Functions.php
—————— ADD YOUR PHP HERE ——————*/add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );
function enqueue_parent_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
}
?>I think I am missing something as its not loading. Please help!
The page I need help with: [log in to see the link]
- The topic ‘Need help with a child theme’ is closed to new replies.