Tagged: catch box, child theme
- This topic has 13 replies, 2 voices, and was last updated 7 years, 7 months ago by
Michael Alø-Nielsen.
-
AuthorPosts
-
December 30, 2016 at 8:27 pm #106150
Michael Alø-Nielsen
ParticipantI’ve made a child-theme for my changes, and I’ve copied the /colors folder from the parent-theme to the child-theme and made my changes there. So far so good! But for some reason I can’t figure out why the dark.css Ive made my changes to doesnt get loaded when I switch from the default colorscheme to the dark one. What am I missing?
December 31, 2016 at 6:04 pm #106184Pratik
ParticipantDecember 31, 2016 at 6:09 pm #106187Michael Alø-Nielsen
ParticipantSorry, but that’s not possible. I’m working at localhost.
December 31, 2016 at 6:13 pm #106190Pratik
ParticipantHi @malodk02,
It will be difficult then. But can you share your child theme with me? Child theme zip file via google drive or dropbox?
Regards,
PratikDecember 31, 2016 at 6:30 pm #106191Michael Alø-Nielsen
ParticipantThat I can do 🙂
catch-box-child.zipJanuary 1, 2017 at 10:16 am #106222Pratik
ParticipantHi @malodk02,
I used your child theme and the dark.css is loading fine. Have you added any CSS codes in Appearance=> Customize=> Additional CSS?
January 1, 2017 at 10:36 am #106223Michael Alø-Nielsen
ParticipantI finally found out why it wasn’t working.
it’s an “error” in the functions.php file in catch-box theme.
You have used “get_template_directory_uri()” which prevents the color stylesheets from the child-theme to be loaded.
You should have used “get_stylesheet_directory_uri()” otherwise it won’t work. See this screenshot:You should change it in the function.php file for the next update of the theme 😉
January 1, 2017 at 10:56 am #106227Pratik
ParticipantHi @malodk02,
Oh!!! It looks like I misunderstood your issue initially.
It looks like thats the issue. I will forward this to our team and try to address the issue in next update. Thanks for digging into the codes and helping us out.
Regards,
PratikJanuary 1, 2017 at 11:02 am #106228Michael Alø-Nielsen
ParticipantNo problem, and again, thanks for all your help 🙂
January 1, 2017 at 8:14 pm #106235Michael Alø-Nielsen
ParticipantAs long as you are fixing errors anyway, I found that you have a duplicate entry in your style.css (the only difference is that the hex-color-code is in small letters in one and in capitals in the other:
/* =Contactform7 ----------------------------------------------- */ #content span.wpcf7-not-valid-tip { background: none repeat scroll 0 0 transparent; border: 0 none; color: #FF0018; font-size: 12px; left: 5px; line-height: 12px; padding: 2px; top: 0; } /* =Contactform7 ----------------------------------------------- */ #content span.wpcf7-not-valid-tip { background: none repeat scroll 0 0 transparent; border: 0 none; color: #ff0018; font-size: 12px; left: 5px; line-height: 12px; padding: 2px; top: 0; }
January 8, 2017 at 4:51 am #106669Michael Alø-Nielsen
ParticipantI noticed that the theme just got an update today, but the “error” mentioned above (about the “get_stylesheet_directory_uri()”) is still not corrected.
It’s simple enough to correct. You just have to replace “get_template_directory_uri()” with “get_stylesheet_directory_uri()” in the functions.php-file, but it’s annoying to have to do it manually every time the theme get’s updated (even though it’s not something that happens every day).
…and the duplicate entry in style.css hasn’t been corrected either. Just to let you know.January 9, 2017 at 8:54 am #106707Pratik
ParticipantHi @malodk02,
I apologize for the inconveniences caused. The bug is in testing process and will be live soon. Because of the nature of the bug, we had to do some testing on different installation criteria.
I hope you understand.
Regards,
PratikJanuary 31, 2017 at 9:23 am #108418Pratik
ParticipantHi @malodk02,
We have reverted the issue because it created a lot of problems for other users. Please check: https://catchthemes.com/support-forum/topic/after-the-update-to-4-6-there-is-no-possibility-to-change-the-color/
What happened is for users that did not have color css in their child theme, it failed to load any color for them.
Solution for you would be to add your css for color scheme in the child theme’s styles.css files. This will override any parent theme’s css.
Regards,
PratikJanuary 31, 2017 at 1:07 pm #108436Michael Alø-Nielsen
ParticipantI will have to make different child themes for each color that i need (dark and blue) then. Thanks for all your help!
-
AuthorPosts
- The topic ‘dark.css in child-theme won't load’ is closed to new replies.