Child theme CSS not working

Posted in: Newspaper
Post count: 2

My site is here:

https://redstateroundup.com

I just started developing the site. I installed the child theme included in the download and it seems to be working properly, but when I make changes to the child theme CSS they won’t show up on the site.

Troubleshooting so far:

–If I navigate to https://redstateroundup.com/wp-content/themes/Newspaper-child/style.css in a browser the changes are there.
–The CSS is valid: It works when I test it in the CSS panel in Console, in the WP Customize tool and in the CSS field in Theme Panel > Custom Code.
–When I look at any page’s source code there’s no link to the child theme CSS.
–I checked functions.php to make sure the enqueue function is there.
–I deleted and reinstalled the child theme from scratch but it didn’t help.
–I flushed the cache in my browser and on my host (IONOS).
–I tried hard-coding a link to the child theme CSS in header.php but that didn’t help. The hard-coded CSS link doesn’t show up.
–When I make file changes and check in my FTP client (CyberDuck) the file changes and date modified time update.

As far as I can tell I’m doing everything right, but the site won’t write any child theme changes even though the files seem to be right where they belong.

I can use the Custom Code in Theme Panel if I have to, but also I need to modify PHP files in the child theme.

Any help greatly appreciated!

Post count: 21065

Hello!

Please provide some screenshots with the child theme functions.php file.

Thank you!

Post count: 2

Here’s the functions file:

Screenshit of functions.php

Post count: 35449

Hello,
The code from the child theme function seems to be ok.
From what you describe is like the child theme is not activate.
I made a test with a css on my install and for me this is apply correctly, so the wp-content/themes/Newspaper-child/style.css file is working for css.
If you want we can made some investigations at this. For this you can contact us via email at contact@tagdiv.com, please provide wp-admin access and we’ll check it as soon as we can.
Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.