Soliloquy Documentation

Documentation, Reference Materials, and Tutorials for Soliloquy

White Label 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.


Creating the Plugin

To white label Soliloquy, just add the following code to a new file at wp-content/plugins/soliloquy-whitelabel.php.

[php]<?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:

  1. Open a text file and make sure that it is a plain text document. You can use a plain text editor like Notepad or a code editor of your choice.
  2. Next, copy and paste the code shown above into the file and save the file as soliloquy-whitelabel.php
  3. Once you’ve saved the file you can easily upload this directly to your /plugins directory on your server using FTP or you can right-click on the text document and zip (or compress).
  4. Finally, log in to your WordPress dashboard and go to Plugins » Add New » Upload Plugin and upload the .zip file you just created in the previous step.

Activate the Plugin

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.

Activate the White Label Plugin you've just created

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.


FAQs

Q: Why can’t I remove the logo icon?

A: That logo is not included in the filter we use in the plugin and can’t be removed.