Soliloquy Documentation

Documentation, Reference Materials, and Tutorials for Soliloquy

How to Display Caption on Hover

Would you like to style your slider to show caption on hover only? This can be easy to do with a little CSS. We’ll walk you through how to style your sliders to show the caption when you hover over the image.

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


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 – Edit your slider images

Next, you’ll need to edit your images and add your captions.

To do this, click the blue pencil icon to open the Edit Item window.

To show the caption only on hover, first edit your images

Step 4 – Add the caption to each image

Inside the Caption field, add your caption.

Add your caption and click Save Metadata

Using the right and left arrow keys in the top right corner of the Edit Item window, you can navigate through each slider image adding the caption you wish to appear. Remember to click Save Metadata after each time you add your caption.

Step 5 – The CSS

Have a look at the CSS shown below that we used for our demo.

Add the CSS to the Misc tab to style the caption and image side by side

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-508280 .soliloquy-caption {
display: none !important;
#soliloquy-container-508280:hover .soliloquy-caption,
#soliloquy-container-508280 .soliloquy-hover .soliloquy-caption {
display: block !important;
Be sure to update the -508280 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! You’ve now styled the image and caption to be side by side!

Would you like to show the slider arrows at all times? Have a look at our article on How to Always Display Navigation Arrows.