4 years, 6 months ago #1012176
So i needed to add some custom classes to the noo-banner setup so went ahead and edited the noo-banner.php file in noo-umbra-core
But I have just updated and these classes have disappeared. How do I add these classes so when I update they don't get overwritten.
I have my child theme installed and the styles for this custom class are all there its the class name isnt being called.
Barry4 years, 6 months ago #1012177
If you want to use child theme then you will have to install parent theme. Child theme inherits all classes of parent theme.
Using Childtheme has some advantages. You can change (Add, reduce, edit, delete) without having any influence on Parentheme when we release an updated version. Besides, it will not eliminate customs you edited.
Moreover, structure of child theme is quite simple. It only includes 2 files that are functions.php and style.css. If you want to edit any file, you can copy that file from a position of parent theme to the corresponding one of childtheme.
Here are some links about child theme:
Junnie4 years, 6 months ago #1012178
I totally get that, but I use a BEM style approach to CSS (which your theme doesn't - https://css-tricks.com/bem-101/) so if I needed to add a class to noo-banner.php I have to go into
This file is outside of the theme so when I try and replicate the same structure it doesn't work. How do I get around this, so when I update the theme my custom BEM style classes wont disappear.
Barry4 years, 6 months ago #1012181
I've figured this out, I had to copy the whole noo-banner function over to my functions.php file and add my custom classes here.4 years, 6 months ago #1012184
It’s great that you have resolved this issue.
I’ll mark this topic as resolved. If you found another problem, please create a new topic.
You must be logged in and have valid license to reply to this topic.