Soliloquy Documentation
Documentation, Reference Materials, and Tutorials for Soliloquy
Documentation, Reference Materials, and Tutorials for Soliloquy
Would you like to white label Soliloquy? You can easily do this by installing a custom plugin on your site! Simply create a plugin file to change all instances of “Soliloquy” to simply say “Slider” and remove the Soliloquy banner and branding.
Note: This tutorial is a bit more technical than our other docs, but we’ll walk you through the process step by step. In order to white label Soliloquy, we’ll need to create and upload a basic WordPress plugin.
To white label Soliloquy, just add the following code to a new file at wp-content/plugins/soliloquy-whitelabel.php
.
/**
* Plugin Name: Soliloquy – Whitelabel Soliloquy
* Plugin URI: https://soliloquywp.com
* Description: Plugin that removes Soliloquy Branding
* Author: Soliloquy Team
* Author URI: https://soliloquywp.com
* Version: 1.0
* Domain Path: languages
*/
add_filter( ‘soliloquy_whitelabel’, ‘__return_false’ );
add_filter( ‘gettext’, ‘tgm_soliloquy_whitelabel’, 10, 3 );
function tgm_soliloquy_whitelabel( $translated_text, $source_text, $domain ) {
// If not in the admin, return the default string.
if ( ! is_admin() ) {
return $translated_text;
}
if ( strpos( $source_text, ‘Soliloquy Slider’ ) !== false ) {
return str_replace( ‘Soliloquy Slider’, ‘Slider’, $translated_text );
}
if ( strpos( $source_text, ‘Soliloquy Sliders’ ) !== false ) {
return str_replace( ‘Soliloquy Sliders’, ‘Sliders’, $translated_text );
}
if ( strpos( $source_text, ‘Soliloquy slider’ ) !== false ) {
return str_replace( ‘Soliloquy slider’, ‘slider’, $translated_text );
}
if ( strpos( $source_text, ‘Soliloquy’ ) !== false ) {
return str_replace( ‘Soliloquy’, ‘Slider’, $translated_text );
}
return $translated_text;
}[/php]
If you’re unsure how to create a plugin file, follow these steps below:
soliloquy-whitelabel.php
Your next step is to activate the plugin you just uploaded. Simply navigate to the Plugins from within your WordPress dashboard and activate the Soliloquy – Whitelabel Soliloquy plugin.
That’s it! You’ve white labeled Soliloquy. Would you like to extend Soliloquy further? Take a look at our tutorial on How to Display Slider Title Before Slide Container.
A: That logo is not included in the filter we use in the plugin and can’t be removed.