I've just started to use WordPress and learned about the child-theme feature. So it's my first time doing this and I ran into some problems.
When I try to preview the child-theme, the formatting of the whole site is messed up.
Something tells me it's coming from my functions.php
since I've only enqueued one style.css
when I have three.
The other two CSS files only have a few lines of code. I can put them on the style.css
but I don't want to modify the original file that's why I'm using a child-theme feature.
I'm also here to learn more about this stuff for future reference :)
Here's the contents of my functions.php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
Please enlighten me.