New Landing How can we help? Themeforest Theme Support Dante Child theme css not loading

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #214769
    triinum
    Member
    Post count: 45

    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.

    #214837
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I see that its loading perfectly.
    Thanks
    Mohammad

    #214842
    triinum
    Member
    Post count: 45

    Hi 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;
    }

    #214845
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    There are two child theme loading at your website. One is blank and second have this code.
    Thanks
    Mohammad

    #214895
    triinum
    Member
    Post count: 45

    So 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?)

    #214900
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    There is no any problem to load new file.
    Thanks
    Mohammad

    #214902
    triinum
    Member
    Post count: 45

    Thank you for everything!

    #214911
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks
    Mohammad

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register