function twentyeleven_enqueue_color_scheme() {}

Enqueue the styles for the current color scheme.

Defined actions

  • twentyeleven_enqueue_color_scheme
    do_action( 'twentyeleven_enqueue_color_scheme', $color_scheme );

Source code

function twentyeleven_enqueue_color_scheme() {

	$options = twentyeleven_get_theme_options();

	$color_scheme = $options['color_scheme'];

	if ( 'dark' == $color_scheme )

		wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', array(), null );

	do_action( 'twentyeleven_enqueue_color_scheme', $color_scheme );



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: