Soliloquy Documentation
Documentation, Reference Materials, and Tutorials for Soliloquy
Documentation, Reference Materials, and Tutorials for Soliloquy
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.
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
.
/**
* Disable touchswipe on mobile
*/
function sol_soliloquy_disable_touchswipe_mobile() {
if ( wp_is_mobile() ) {
?>
touchEnabled: false,
<?php
}
}
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:
soliloquy-display-title-before-container.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 – Disable Touchswipe on Mobile 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.