Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Child theme css not loading
New Landing › How can we help? › Themeforest Theme Support › Dante › Child theme css not loading
- This topic has 7 replies, 2 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Dante
-
September 20, 2015 at 10:54 am #214769
Hi! For some reason child css is not loading, tried all sorts of filters like function theme_enqueue_styles() {
$parent_style = ‘parent-style’;
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style )
);
}But nothing.. then on the other hand – shouldn’t it load by default? Please help. Thanks.
September 21, 2015 at 9:07 am #214837Hi,
I see that its loading perfectly.
Thanks
MohammadSeptember 21, 2015 at 9:13 am #214842Hi and thanks for the quick answer! How do you see that? Because I have some new css in the end of the document and it’s not loading, so I made another file called lp.css and referenced it in header.php and put the same css in there and it’s loading it. This is the css:
@font-face {
font-family: comfortaa;
src: url(comfortaa-regular.ttf);
}
body, p, #commentform label, .contact-form label {
font-size: 16px;
line-height: 24px;
color: #333;
}
h1, h2, h3, h4, h5, h6, header {
font-family: comfortaa;
text-transform: initial;
}
#footer h6, #footer header {
color: #cccccc;
font-size: 24px;
}
hr {
border-top: 1px solid #D8D8D8;
}
h1 {
font-size: 40px;
}
h1, h4{
color:#6EC141;
}
h2, h5 {
color: #17B6CE;
}
h3, h6{
color:#F7941E;
}h3.spb-heading {
margin-bottom: 25px;
/*color: #21BBB2;*/
color:#696969;
height: 24px;
}.recent-post h5 {
font-size: 16px;
font-weight: 700;
line-height: 28px;
}
.recent-post h5 a{
}
.details-wrap p {
font-size: 13px;
font-weight: 500;
}
.btn {
width: inherit;
height: inherit;
line-height: 34px;
padding: 8px 26px;
font-family: comfortaa;
transition: background-color .3s ease-in-out;
-webkit-transition: background-color .3s ease-in-out;
-moz-transition: background-color .3s ease-in-out;
-ms-transition: background-color .3s ease-in-out;
animation-iteration-count:none;
-moz-animation-iteration-count:none;
-webkit-animation-iteration-count:none;
animation:none;}
.btn:hover {
box-shadow: none;
color: #fff;
background-color: #E64F28;
}
.spb_parallax_asset{
box-shadow:none;
}
nav#main-navigation .menu li.menu-item > a {
font-size: initial;
}September 21, 2015 at 9:21 am #214845Hi,
There are two child theme loading at your website. One is blank and second have this code.
Thanks
MohammadSeptember 21, 2015 at 10:18 am #214895So maybe it’s just overwritten by theme options, which would be better in this case, to use !important or make a new css file(wouldn’t a new css file cause too many server requests?)
September 21, 2015 at 10:20 am #214900Hi,
There is no any problem to load new file.
Thanks
MohammadSeptember 21, 2015 at 10:23 am #214902Thank you for everything!
September 21, 2015 at 10:36 am #214911Hi,
You most welcome.
Thanks
Mohammad -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.