Soliloquy Documentation

Documentation, Reference Materials, and Tutorials for Soliloquy

Transform Slider into “Whatever You Want”!

Important: This doc assumes you’re comfortable creating and/or editing PHP files in your WordPress installation and writing your own code. It is intended for advanced users.

We do not provide support for custom modifications to Soliloquy, this documentation is provided only for your convenience.

So one of the awesome things about Soliloquy is its ability to be filtered and customized almost endlessly. That’s why it has so many awesome Addons and many more to come!

One of the cool ways you can transform Soliloquy is by completely bypassing it being output into a slider. You can simply use Soliloquy for the UI and then do something completely different with it. Here’s an example of how you would do that:

Add the following code to your active theme’s functions.php file:

add_filter( 'soliloquy_output', 'tgm_soliloquy_transform_to_gallery', 10, 2 );
 * Circumvents the slider output and allows access to raw format.
 * @param string $slider   The slider HTML.
 * @param array $data      Array of slider data.
 * @return string $gallery New HTML output with the data being turned into a gallery!
function tgm_soliloquy_transform_to_gallery( $slider, $data ) {
	// Prepare your $gallery variable. All gallery HTML will be stored in here.
	$gallery = '';
	// Make all HTML stuff happen here.
	// Return the $gallery variable to be output by Soliloquy.
	return $gallery;

Note: Using this filter will completely disable any slider output, including CSS and JS files and initializations. It gives you a blank slate with nothing but the base slider output and the $data about the slider itself.

You can use this to transform Soliloquy into a sweet gallery or whatever else you can imagine. The sky is the limit!