Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

Need help with a child theme

$
0
0

Replies: 0

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!


Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>