Last active
December 20, 2022 16:47
-
-
Save SitesByYogi/62e581a2f2223aa1a6978a4ad138d92e to your computer and use it in GitHub Desktop.
Add CSS to WordPress using (child) theme's functions.php file or a custom plugin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_head', 'my_unique_css_func_name' ); | |
function my_unique_css_func_name() { | |
?><style> | |
/* Your styles here */ | |
</style><?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment