When a plugin adds custom content or inserts styling tags to a post or page's existing content, as was done in the previous recipe showing how to create an enclosing shortcode, it usually needs to load a custom style sheet to style these new elements. This recipe shows how to add a style sheet in the WordPress style queue to format the private output created in the previous recipe. This queue is processed when the page header is rendered, listing all the style sheets that need to be loaded to display the site correctly.
Loading a style sheet to format plugin output
Getting ready
You should have already followed the Creating a new enclosing shortcode recipe to have a starting point for this recipe and the resulting plugin...