Customer Inquiries

1001 Mark Boulevard St.

New York, NY, US.


Mon - Sat 8.00 - 18.00


Sales department

+01 2345 6789

iHover Effects Example and Tutorial for Divi


Instructions For Using iHover CSS Effects

First off you need to have some knowledge on how and where to insert this code within the realms of both WordPress and Divi to make it work.

In WordPress –

You can go to Appearance and Editor which should take you directly to your stylesheet opened in the editor itself. CAUTION: You should be using a child theme for these additions! If you are using a child theme then and this is your first trip to the editor then the stylesheet should be mostly blank with the exception of some code at the top that MUST REMAIN there. You will insert the new code below it.

This is where you will insert the CSS instructions from iHover by doing a copy/paste. Trying to paste this much code into the Divi custom CSS box in the ePanel will make you go crazy. So don’t do it.

In Divi –

You will need to insert the HTML into the Code module that contains all the div class names and assignments. Once again, DO NOT attempt to paste all this code into the Divi custom CSS box if you wish to keep your sanity.



First Step - get prepared

You need to have the image uploaded to the Media Library and you need to have the URL to that image handy so you can insert it in place of the image reference in the sample HTML code from iHover.


Second Step - Get the code from iHover

It’s doubtful that you wish to use ALL the effects available. Therefore you don’t need to copy the entire CSS file from iHover. Plus, loading all that extra code will just slow your page load times down by loading unnecessary stuff if you’re only using a single effect. So, we want to pluck out of their CSS file just the stuff we need. Here’s the minimum that you’ll need to get:

First, the basic code handling the global instructions for the effects. This should be about the first 100 lines of code from the CSS file.



Third Step - Find the effect code you want

If you just want Square Effect #4 (as an example) then that’s all the code you need from the CSS file. If you search down to about line #101 you will see where the name and number of the effects start to appear in the form of something like this:

That is effect #1 for the circle effect. There will be several instructions following this line that contain effect1 in it. You need ALL of these if you intend to use effect #1 or all of whatever it is of the effect you wish to use. For example, line(s) 101 to 148 are all needed in order to use Effect #1 for circles. Copy and paste these into your child theme’s stylesheet BELOW where you pasted the global CSS for the iHover effects.

This is the code for Square Effect #5 (example on right) just to show you what needs to be copy/pasted:



Fourth Step - Get the HTML for the effect you want

Now you need to copy/paste the HTML into your page that contains the div classes and code to display the image and the effects. From the example page (located here: find the effect you want and you’ll see the HTML code for each just below the demos. The part you need is just this:

Basically the HTML between the “normal” and “end normal” comment lines. This is the code you will copy/paste into the Code module you’ve inserted into your page using the Divi builder. NOTE: This snippet is for Effect #5 only. The HTML will be different for each effect. You must copy/paste the HTML for the effect you want.

You MUST replace the with your URL to your image that you did in Step #1

Now, just change the text that refers to Headline Here and Description. These lines here:

To whatever you want them to say. Be advised, though, these are space limited so you can’t get too crazy with the amount of text. Short and sweet!

Hit the Save & Exit and preview your page to see if the effects work.



Pin It on Pinterest

Share This