Soliloquy Documentation

Documentation, Reference Materials, and Tutorials for Soliloquy

Change Crop Position for Slider Images

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

You can change the default crop position for Soliloquy sliders following this guide.

Step 1 – Create Plugin File

The first step is to create a new php file in the wp-content/plugins/ directory of your WordPress installation. The easiest way to do this is using your favorite FTP program or through your web hosting account’s file editor (if they provide one).

Once you’ve navigated to the wp-content/plugins/ directory, create a new file with the name soliloquy-change-crop-position.php

Step 2 – Edit the New Plugin File

Next, you’ll want to copy and paste the following code into the soliloquy-change-crop-position.php plugin file you’ve created:

* Plugin Name: Soliloquy - Change Crop Position
* Plugin URI:
* Version: 1.0
* Author: Tim Carr
* Author URI:
* Description: Set Soliloquy images to be cropped from the to top, bottom, left or right

* Change the position where images are cropped from (default = center)
* @param array $args Resize Arguments
* @return array Resize Arguments
function sol_soliloquy_crop_images_position( $args ) {
	* Accepted Positions:
	* tl: top left
	* t: top center
	* tr: top right
	* l: left
	* c: center
	* r: right
	* bl: bottom left
	* b: bottom center
	* br: bottom right
	$args['position'] = 't';
	return $args;
add_filter( 'soliloquy_crop_image_args', 'sol_soliloquy_crop_images_position' );

Step 3 – Activate the New Plugin

The last step is to navigate to the WordPress Admin > Plugins screen, locate the plugin named Soliloquy – Change Crop Position and activate the plugin.

That’s it! You’ve successfully changed the crop position for slider images!