Enqueue code for child theme
-
Hi,
I don’t think I am using the right code in functions.php. I saw that the one you have on your documentation site is completely blank and I want it to use what the parent theme has and add/make replacements into the code with whatever I do.
My code on functions.php in the child theme currently begins like this:
<?php add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); function enqueue_parent_styles() {wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css', array('bootstrap') );}
This is what I used before moving to generatepress & worked. But I have the impression that at this time it isn’t, because some other things I did don’t show the expected results on the frontend. And I’m wondering if this is why.
Thanks.
The page I need help with: [log in to see the link]
- The topic ‘Enqueue code for child theme’ is closed to new replies.