Skip to content

Instantly share code, notes, and snippets.

@Asikur22
Created April 13, 2019 11:39
Show Gist options
  • Select an option

  • Save Asikur22/9e22c9d5946349852dbe34e41e934771 to your computer and use it in GitHub Desktop.

Select an option

Save Asikur22/9e22c9d5946349852dbe34e41e934771 to your computer and use it in GitHub Desktop.
Add Internal CSS Style in Wordpress
function add_internal_css_style() {
?>
<style type="text/css">
.classname {
margin: 0;
}
</style>
<?php
}
add_action( 'wp_head', 'add_internal_css_style' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment