Creating A Child Theme, CSS Not Working
-
I feel like I’m going round in circles here… I had a child theme on my blog (with the Twenty Twenty-Three theme) and it worked fine. I made the mistake of not keeping the files thinking I’d start afresh, since I’m completing starting over with the entire blog, but now I can’t get CSS to work in the CSS file.
I like being able to add custom colour codes/fonts in the json file so I do still need to use a child theme. I did a web browser code inspect and edited the search box there to decrease the size of it with padding but when I went to make that change in the CSS file with the .class identifier nothing happened. I’ve since tried rotating things just to see if it’s the CSS and that’s when I found it isn’t working.
This is what’s in my functions PHP file right now:
<?php add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); function enqueue_parent_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?>
And the template line from the CSS file:
Template: twentytwentythree
I must be missing something obvious but I’m not sure what. I’ve already tried taking the themes off, re-adding Twenty Twenty-Three then starting a new child theme again but that hasn’t solved it.
The page I need help with: [log in to see the link]
- The topic ‘Creating A Child Theme, CSS Not Working’ is closed to new replies.