NooTheme Premium WordPress Theme › Forums › Mebla › Adding styles within the noo-umbra-core folder
- This topic has 4 replies, 2 voices, and was last updated 4 years, 6 months ago by
Junnie.
-
AuthorPosts
-
4 years, 6 months ago #1012176
Hi There,
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.
Please help
Thanks
Barry
4 years, 6 months ago #1012177Hi Barry,
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:
https://nootheme.com/knowledge-base/how-to-install-a-childtheme/
https://codex.wordpress.org/Child_Themes
http://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/
https://www.elegantthemes.com/blog/resources/wordpress-child-theme-tutorialBest regards,
Junnie
4 years, 6 months ago #1012178I 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
/wp-content/plugins/noo-umbra-core/admin/vc_extension/shortcodes/noo-banner.php
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.
Thanks
Barry
4 years, 6 months ago #1012181I'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 #1012184Hi,
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.
Best regards,Junnie
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.