Home / Admin / Normalize
Duplicate Snippet

Embed Snippet on Your Site

Normalize

Settings to normalize across browsers

Code Preview
php
<?php
// Add custom styles
if ( ! function_exists( 'add_custom_style_normalize' ) ) {
	function add_custom_style_normalize() {
	// The New Normal CSS
      wp_register_style( 'the-new-normal-css', 'https://cdn.jsdelivr.net/gh/sarahschopick/the-new-normal.css@main/the-new-normal.min.css', array(), '1.0.0' );
      wp_enqueue_style( 'the-new-normal-css' );
			
	// Alternative normalization stylesheets (only use one)
		// Normalize: https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css
		// Modern Normalize: https://cdnjs.cloudflare.com/ajax/libs/modern-normalize/3.0.1/modern-normalize.min.css
		// Sanitize: https://cdnjs.cloudflare.com/ajax/libs/sanitize.css/2.0.0/sanitize.min.css
		
	// Normalization extensions
		// Normalize Opentype: https://cdnjs.cloudflare.com/ajax/libs/normalize-opentype.css/0.2.4/normalize-opentype.min.css
	
	// WordPress Specific Normalization
      wp_register_style( 'normalize-wordpress', 'https://cdn.jsdelivr.net/gh/sarahschopick/normalize-wordpress@main/normalize-wordpress.min.css', array(), '1.0.0' );	
      wp_enqueue_style( 'normalize-wordpress' );
	}
}
add_action( 'wp_enqueue_scripts', 'add_custom_style_normalize' );

Comments

Add a Comment