Add inline css to theme

I have wordpress theme and I want to add custom css

So I try to add to header

<?php if (!empty($btn_color)){  ?> 
.btn-default{ background-color:<?php echo esc_attr($btn_color);?>; } <?php } ?>

But it seems it isn’t good way and I need to use


So how to use this function?

Read more here: Add inline css to theme

Leave a Reply

Your email address will not be published. Required fields are marked *