Wpenqueuestylewickedskin getbloginfostylesheetdirectory skins wickedcolorvariant skincss all

It's quite simple: we're just inserting the $wicked_color_variant option into the style sheet path string.

Our style sheet has to be enqueued before the head of the document is rendered, so we're unable to hook into wp_head as we did before. Fortunately, WordPress has an action hook called wp_print_styles for just this purpose:

chapter_07/v3/wicked/library/style-options.php (excerpt) add_action('wp_print_styles', 'wicked_load_custom_styles');

With this in place, you should be able to select a color variant and have the appropriate style sheet loaded on the front end. Now you just need to flesh out those skins with some fancy CSS of your own!

Was this article helpful?

0 0

Post a comment