Updating Child Theme to Enqueue form @Import
-
I created a child theme and used the @import code in my style.css. I’m trying to update to the method using the enqueue in the funtions php.
My style.css code is:/*
Theme Name: unite child theme-not important
Theme URI: https://cavasenostudios.com/ -not important
Description: unite child theme-not important
Author: Stephen Cavaseno-not important
Author URI: https://cavasenostudios.com/ -not important
Template: unite
Version: 1.0-not important
*/and my functions.php code is:
<?php
add_action( ‘wp_enqueue_scripts’, ‘unite_child_enqueue_styles’, 11 );
function unite_child_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
}
?>When I upload these files to the site, I lose lots of formatting.
So 1st, what is wrong and 2nd, when I originally added all the custom formatting, where is that code saved?
- The topic ‘Updating Child Theme to Enqueue form @Import’ is closed to new replies.