Adding grid.css to a Child Theme
-
Hi,
I’m creating a Child theme for the Pho theme.
One of the things I would like to do is to attach a new CSS file called grid.cssHere is how I’ve done it and I would like to ask you if it’s OK. Namely, its not working …
1. I’ve put the grid.css in the wp-content/themes/pho-child/css/grid.css
2. In the file pho-child/functions.php I’ve written:
add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles',PHP_INT_MAX); function enqueue_child_theme_styles() { wp_enqueue_style( 'grid', get_template_directory_uri().'/css/grid.css'); wp_enqueue_style( 'pho', get_template_directory_uri().'/style.css'); wp_enqueue_style( 'pho-child', get_stylesheet_uri(), array('parent-style') ); }
Is that that the way I should enqueue styles?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Adding grid.css to a Child Theme’ is closed to new replies.