Home Forums Theme Support Dokan Child theme

This topic is: resolved

This topic contains 8 replies, has 2 voices, and was last updated by  Sk 4 years, 10 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #23325

    Jean-Michel
    Member
    Post count: 17

    I've been suggested by your support to customize the theme in a child theme.
    With that header:
    /*
    Theme Name: dokan-child
    Description: Child Theme
    Template: dokan
    Version: 1.0.5
    */

    @import url(“../dokan/style.css”);

    /* Theme customization starts here

    —— The style in my child theme doesn't load :/
    What's wrong?
    Thx

    #23341

    Sk
    Moderator
    Post count: 371

    Hello Jean,

    Please check out the documentation here ->

    http://docs.wedevs.com/styling-chile-theme/#load-style-sheet

    Thank you

    #23560

    Jean-Michel
    Member
    Post count: 17

    Thx for the answer..
    I've followed the instruction.. but nothing in my child-theme css file is loading.

    That's my functions.php in my child-theme

    < ?php define('THEMEROOT',get_stylesheet_directory_uri()); function scripts(){ wp_enqueue('dokan-child',THEMEROOT.'/style.css',false,null); } add_action('wp_enqueue_scripts','scripts',99); ?>

    Thx!

    #23604

    Sk
    Moderator
    Post count: 371

    Hello Jean,

    Please replace wp_enqueue by wp_enqueue_style like

    < ?php
    define( 'THEMEROOT', get_stylesheet_directory_uri() );
    function scripts(){
    wp_enqueue_style( 'dokan-child', THEMEROOT.'/style.css', false, null );
    }
    
    add_action( 'wp_enqueue_scripts', 'scripts', 99);

    Thank you.

    #23612

    Jean-Michel
    Member
    Post count: 17

    Heaven with that code.. The style doesn't take effect..
    Really; I need this to be fix :/

    #23639

    Sk
    Moderator
    Post count: 371

    Hello jean.

    can you please provide us your admin access? So that we can check the code.

    Thank you.

    #23678

    Jean-Michel
    Member
    Post count: 17
    This reply has been marked as private.
    #23718

    Jean-Michel
    Member
    Post count: 17
    This reply has been marked as private.
    #23802

    Sk
    Moderator
    Post count: 371

    Hello Jean,

    Your Child-theme works perfectly. I have write a css class for change your category-widget-title style. It works. Please check.

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

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