Skip to content

kylereicks/wp-enqueue-inline-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WP Enqueue Inline Style

A WordPress plugin to add inline CSS in the <head>.

Functions

wp_register_inline_style($handle, $src = '', $deps = array(), $ver = false, $media = 'all')

wp_enqueue_inline_style($handle, $src = '', $deps = array(), $ver = false, $media = 'all')

Use

Add an inline style

wp_enqueue_inline_style('priority-style', 'http://www.site.com/path/to/style/priority-style.css', array(), '1.0', 'all');

Register an inline style to be enqueued later

wp_register_inline_style('priority-style', 'http://www.site.com/path/to/style/priority-style.css', array(), '1.0', 'all');

Register an existing style as inline

wp_register_inline_style('existing-style');

About

A WordPress plugin to add inline CSS in the `<head>`.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages