Child theme's CSS taking way to long to load
-
Built the whole site inside an unsupported theme so at first I thought there would be no need for a child theme. Well, once finished I decided it would be safer to just do a child theme. So I copied all the modified files to my child folder and set it up. Then I restored the original files to the parent theme.
Everything works fine except now my CSS takes forever to load. I’m running in Ampps on my local machine so there really shouldn’t be any lag at all.
This is how I am setting up my child theme:
functions.php:
<?php add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style'); function enqueue_parent_theme_style() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); }
style.css:
/* Theme Name: <Theme> Child Theme URI: <Theme URL> Description: <Theme> Child Theme Author: <My Name> Author URI: <My URL> Template: <parent theme name> Version: 1.0.0 Tags: <same tags as parent> Text Domain: <theme>-child */
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Child theme's CSS taking way to long to load’ is closed to new replies.