Child theme – enqueue css
-
I am trying to create a child theme and enqueue its style.css
I followed this advise http://codex.ww.wp.xz.cn/Child_Themes
and into child theme’s functions.php I pasted this<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'parent-style' ) ); }Now it is working somehow, but not completely without problems. My question is following:
There are more css files in the parent directory, There is the one called ‘style.css’, then there is a directory called ‘css’, containing file ‘layout.css’, and another directory ‘functions/css’ containing many different files such as ‘colorpicker.css’
Do I need to enqueue more of them or should it be fine as I showed above?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘Child theme – enqueue css’ is closed to new replies.