Soliloquy Documentation

Documentation, Reference Materials, and Tutorials for Soliloquy

Disable Touchswipe on Mobile

Would you like to disable the touch swipe on mobile? This is very easy to do with just a few steps! We’ll walk you through how to disable the touch swipe with a few easy steps.

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 disable the touch swipe on mobile, we’ll need to create and upload a basic WordPress plugin.

Creating the Plugin

To set the slider title before your sliders, just add the following code to a new file at wp-content/plugins/soliloquy-disable-mobile-touchswipe.php.

* Plugin Name: Soliloquy – Disable Touchswipe on Mobile
* Plugin URI:
* Version: 1.0
* Author: Soliloquy Team
* Author URI:
* Description: Disable touchswipe on mobile

* Disable touchswipe on mobile
function sol_soliloquy_disable_touchswipe_mobile() {

if ( wp_is_mobile() ) {
touchEnabled: false,

add_action( ‘soliloquy_api_config_start’, ‘sol_soliloquy_disable_touchswipe_mobile’ );[/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-display-title-before-container.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 – Disable Touchswipe on Mobile plugin.

Disable touchswipe on mobile by activating the custom plugin

You’ve now disable the touchswipe on mobile! Would you like to adjust the image quality for the images you upload to WordPress? Take a look at our tutorial on How to Adjust Image Quality.