How can I make sure that my child theme style.css is working?
-
I have the following code on top of my functions.php, taken from the child themes guide on wordpress:
<?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?>
But i’m not entirely sure if it’s correctly working as I have this code in my style.css:
.main-navigation ul li a:before { display: none; }
This is to remove the page icons next to links on my storefront-child theme but it’s currently not working. The other posts I have seen seems to be working with that solution. The only problem I can think of is that the style.css is not being loaded correctly.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How can I make sure that my child theme style.css is working?’ is closed to new replies.