Hi,
I’ve set up my child theme but I can’t seem to get it pick up the CSS from the child style.css.
This is what I’ve got in my child functions.php…
<?php
add_action( 'wp_enqueue_scripts', function() {
wp_enqueue_style( 'hashone-parent-style', get_template_directory_uri() . '/style.css' );
});
I’ve added the following to the child style.css (to change the news ticker title to blue just as a test)…
.news-ticker-label {
border-bottom: 1px solid #fff;
border-right: none;
color: #2196f3 !important;
display: inline-block;
float: left;
font-size: 22px;
margin-top: 0;
margin-bottom: 10px;
max-width: 100%;
padding: 0 0 5px;
text-align: left;
width: auto;
}
But when I load the page and inspect the element, the css is coming from the parent css.
How do I fix this? …I did this a few years back and it seemed to work without any problems, that was before enqueing was a thing.