Forgive me if this is a stupid question but is there a place where I can place custom css for the theme that would over ride the original. Right now I've have made some changes to the css of this theme and just realized that if I update the theme according to the instruction of the documentation I will loose these changes. So how do I avoid having to go back in and redo the changes every time you update the theme?
Custom Css
(6 posts) (2 voices)-
Posted 11 months ago #
-
install and activate the bfblank child theme. This theme will use bigfature as a parent theme, meaning it looks and behaves the same, but anything added to it (css, php, templates) will override the parent. Add the css to the child theme style.css.
Posted 11 months ago # -
It would be nice if you had a custom css field in the theme setting, This way those overrides can be backed up along with the export of the theme setting. I'm ignorant as to how this works but Ive seen this with another theme I had. Simpler for the end user. Just a thought.
Posted 11 months ago # -
Couldn't I simply place my overrides at the bottom of the style sheet?
I would do this by adding the same rule with different values or properties at the bottom. Since it comes later, cascade comes into effect, overwriting previous values?
Posted 11 months ago # -
It would be nice if you had a custom css field in the theme setting
There is one, it's called "Scripts / Stylesheets (header)". Just add style tags around your css. Example:<style>
.stuff { color: #333; }
</style>Couldn't I simply place my overrides at the bottom of the style sheet?
Use a child theme as I suggested. It's the best solution for modifications since all the changes will be protected when upgrading the parent theme. Just download the bfBlank child theme, install it and activate it as a normal theme and just add css to it's style.css. That stylesheet comes after the bigfeature and the theme settings stylesheet so overriding with specificity is no problem. And also you can copy template files like single.php into the child theme for modification and it will override the original one.And I recommend to use Firebug to find what css to override.
Posted 11 months ago # -
perfect, thank you
Posted 11 months ago #
Reply
You must log in to post.