• 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]

Viewing 1 replies (of 1 total)
  • You can only have a parent and a child active, not a grandparent, parent, and child, or a parent and two children. Well, really, the child theme is active, but the parent is loaded as well. But only two, not three.
    Since you already have a child theme, make your changes there. That’s what child themes are for.

Viewing 1 replies (of 1 total)
  • The topic ‘Need help with a child theme’ is closed to new replies.