Child Theme will not override my Parent theme
Hello, and thanks for so a great Theme.
I just activate my child theme and start to play with the css. My Problem is that will just work if i put !important I know I´m doing something wrong but I don´t have any clue why is not working right.
I will appreciated if some one can help me.
Bye
/*
Theme Name: Betheme Child
Theme URI: http://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: http://muffingroup.com
Description: Child Theme for Betheme - Premium WordPress Theme
Template: betheme
Version: 1
*/
@import url("../betheme/style.css");
/* Theme customization starts here
-------------------------------------------------------------- */
.custom-css-class { display:block;}
#Top_bar, .header-stack #Top_bar, .header-fixed #Top_bar, .header-below #Top_bar, #Header_creative, #Top_bar #menu {
background-color: #7e0016 !important;
}
#Top_bar .menu > li > a span:not(.description) {
display: block;
line-height: 60px;
padding: 0 20px;
white-space: nowrap;
border-right-width: 3px !Important;
border-style: solid;
}
Comments
!important; should work of course. But if does not work then you should have a look at http://codex.wordpress.org/Child_Themes where everything has been explained.
Also some more topics about child theme you can check below:
http://forum.muffingroup.com/betheme/discussion/124/child-theme
http://forum.muffingroup.com/betheme/discussion/892/betheme-child
Thanks for understanding!
@import should not be used to import the parent stylesheet into the child theme. The correct method is to use wp_enqueue_style() to enqueue the parent stylesheet, using this code in your child theme's "functions.php":
Thanks for understanding!
Thanks!