Home Forums Theme Support Dokan Child theme css issues

This topic is: resolved

This topic contains 7 replies, has 3 voices, and was last updated by  Will 4 years, 11 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #21830

    Will
    Member
    Post count: 28

    Hi I just purchased the theme and I'm having some issues setting up the child theme. It doesn't seem like the child css is overwriting the css in the parent though? Anyone else have any issues getting this setup?

    #21831

    Will
    Member
    Post count: 28

    Only an hour and half to figure out the enqueue issue. Maybe this should be included in the *pretty sparse* documentation (especially the page about making a child theme?!?!) Here's the code to put in your child theme functions.php file for those looking

    function theme_name_scripts() {
        wp_enqueue_style( 'style-name', get_stylesheet_uri() );
    }
     
    add_action( 'wp_enqueue_scripts', 'theme_name_scripts', 99 );
    
    #21849

    Sekander Badsha
    Member
    Post count: 2067

    Hello Will,
    We are very sorry. Our documentation is not complete yet for child theme. We will complete that ASAP.

    And thanks for posting the solution. You're awesome!

    #21895

    Will
    Member
    Post count: 28

    I'm having a similar issue with templates not overriding their parents. Would it have a similar source? For instance I'm trying to override the new product template but the changes are showing.

    #21934

    Sekander Badsha
    Member
    Post count: 2067

    Hello Will,
    If you want to customize a template (like- new-product.php), you'll have to create the file inside your child theme; and that has to be in the exact order of the parent.

    In your case, you'll have to make a directory in your child theme and name that to templates and inside that templates folder, you have to create new-product.php.

    Then customize as you like.

    #22018

    Will
    Member
    Post count: 28

    Ahhhhh that's what it is. Missing the templates folder. Thanks.

    #22027

    Sk
    Moderator
    Post count: 371

    Hello will,

    Our Dokan child theme documentation is ready. please check out for farther detail.

    http://docs.wedevs.com/category/themes/dokan/developer-documentation-dokan/child-theme/

    Thank you.

    #22028

    Will
    Member
    Post count: 28

    Looks much better thanks!

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

The topic ‘Child theme css issues’ is closed to new replies.