Soliloquy Documentation

Documentation, Reference Materials, and Tutorials for Soliloquy

How to Show Slider Navigation Arrows on Hover

Would you like to always show slider navigation arrows on hover? This is very easy with CSS. We’ll walk you through the steps on how to show slider navigation arrows on hover.

This tutorial is a little more technical as it requires basic knowledge of HTML and CSS.

Setup

Step 1 – Install and activate the CSS Addon

Your first step will be to install and activate the Soliloquy CSS Addon.

If you need any assistance in installing addons, please take a look at this article.

For this instance, we’ll be installing the CSS Addon.

Activate the CSS addon

Step 2 – Create or edit your slider

Next, create a new slider or edit an existing one. You can follow along with our documentation for creating your first slider.

Step 3 – The CSS

The CSS we’ve used in our demo is shown below.

Add your custom CSS to the Misc tab to show slider navigation on hover

You’ll need to change this ID number to match your slider ID number. You can find this by looking in the sidebar of your slider edit screen.

For more information on how to find your slider ID number you can read this article.

[css]#soliloquy-container-508497 .soliloquy-prev,
#soliloquy-container-508497 .soliloquy-next {
display: none !important;
}
#soliloquy-container-508497:hover .soliloquy-prev,
#soliloquy-container-508497:hover .soliloquy-next {
display: block !important;
}[/css]
Be sure to update the -508497 with your own slider ID number

If you’d like to change this for all sliders, just add the CSS to the WordPress customizer.

Check out our demo of this in action!

Once you click Publish or Update on your slider, you’re all set!

Would you instead like to always show the navigation arrows? Have a look at our article on How to Always Display navigation Arrows.


FAQs

Q: Do I have to use CSS?

A: Not at all. If you’re using the Slider Themes Addon, you can either use the Classic slider theme or Metro slider theme. Those 2 slider themes only show the slider navigation arrows on hover by default with no need for CSS.