Hello,
Please don’t change the version of your child’s theme, that never changes. we always update the parent theme and never update the child theme.
https://www.wpbeginner.com/beginners-guide/wordpress-child-theme-pros-cons/
https://developer.ww.wp.xz.cn/themes/advanced-topics/child-themes/
Thanks @abhikr781
Since I already changed child versions when I first created my child, from ver 1.0 to 1.9.0 and later to 2.0.0 , how can I restart this?
is deleting the childs function.php file, and deactivating and activating the child theme , and creating a new functions.php enough to “restart” this ? or what would be needed? then I will never touch child version after that.
Thanks!
Hello,
Please download the child theme again by following the link.
https://docs.oceanwp.org/article/90-sample-child-theme
Copy the new CSS file from the downloaded child theme and replace it with your existing child theme CSS file.
After replacing the file, if you have any CUstom code in your old CSS file copy that into your new file and check.
PS- make sure to keep a backup before doing any changes or replacing the file.
Hope this helps.
@abhikr781
Hi
Tried as suggested, but just replacing current child style.css did not work.
As I said, when the version of the childs style.css differs from what I have now v2.0.0 (same as in the parent theme), a lot of strange css breakup happens. And the template child style.css has version 1.0, so that did not work.
This is Not due to having any CSS code in the childs style.css, it’s happening on many different things on the website, that does not have any dependent code in the childs style.css . I have tried removing all css code from the childs style.css, but same problem that if I change the version of it, strange things happen.
So, putting a new child sample style.css in place gives the same error and problem as I have.
My question is how I can reset this? want to come back to a working child theme, with no version problems.
Please advice 🙂
Thanks!
Best regards
darondaron
-
This reply was modified 5 years, 4 months ago by
darondaron.
Hello,
I can understand your issue, please share your child theme style.css file or copy the all content of your style file and paste it here to take a look.
The childs css style only had the default comment section in the top with theme, author, version, it still did not work, just of not using
I found the issue, but very difficult to understand.
In my (sticky) Header for the whole website, I had not specified a Z-index, and the Header worked and was on top as long as the childs style.css was the same version as the parent version. When I changed version on childs style.css everything broke.
Now added Z index to sticky Header, so that works, and can now change childs style.css version to whatever, or just leave it on v.1.0.
Try to figure that one out! beats me. But somehow the version number seem to control certain things.
I still don’t see Childs style.css changes in the WP Customizer, or in Elementor. So if I change e.g. text color on something, in Childs style.css, I can not see that color change in Customizer or Elementor, but works perfectly on the live webpage.
Do you know what can cause this? or what to do? or perhaps it common..
BR
Daniel