• Resolved bruc3y

    (@bruc3y)


    When I activate my child theme all the css disappears from the site. I use child themes on all my sites and this is the only one I have a problem with.

    /*
     Theme Name:   WP Knowledge Base Child
     Theme URI:    https://clashopedia.com/wp-knowledge-base-child/
     Description:  WP Knowledge Base Child Theme
     Author:       Paul Samson
     Author URI:   https://paulbrucesamson.com
     Template:     wp-knowledge-base
     Version:      1.0.0
     Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
     Text Domain:  wp-knowledge-base-child
    */
    
    @import url("../wp-knowledge-base/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    What am I missing?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Your theme calls in additional CSS and JS files via get_stylesheet_directory_uri(), which means it looks for those files in the child theme’s folder. You should copy the entire lib/ folder from the parent theme’s folder to the child theme’s folder.

    Thread Starter bruc3y

    (@bruc3y)

    Thanks. I appreciate you’re reply. Would you happen to know the the code for that.

    I tried:

    @import url("../wp-knowledge-base/lib/");

    and it didn’t work. Do I need to actually import every single file in the lib folder?

    Edit: never mind. I realized what you meant and now it’s fixed. Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child theme bug’ is closed to new replies.