I had serious trouble today in trying to figure out how to disable the stylesheets in the Soliloquy plugin for WordPress. After much difficulty, I eventually realised that the stylesheets were added without using the standard WordPress API. They are simply dumped out as raw HTML. These can be removed by filtering the array containing the stylesheet HTML.

Feel free to use the following code snippet in your own projects. Simply copy and paste it into your theme or plugin.

<?php

/** 
 * Removing Soliloquy styles.
 * 
 * @author  Ryan Hellyer <ryanhellyer@gmail.com>
 * @param   array   $dead   Stylesheet information
 * @return  string  Blank (stylesheet information)
 */
add_filter( 'soliloquy_stylesheets', '__return_empty_string', 500 );