This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

How do I create a hover image?

9 years ago · Last reply by Alex S 9 years ago

Hi there, I would like to have a product image on display, but when you hover over it with the mouse it shows the brand logo (and then click on it to go to another page). Is there a widget that will allow me to do this? Happy to buy the premium package but couldn’t see anything in it that looked like it would do it… Thank you.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 9 years, 21 days ago

    Hi Charmed,

    Unfortunately, I can’t seem to find a reliable plugin that will allow for this sort of thing. With that said, you can, however, create something like this with HTML and CSS.

    Please add the following HTML to a text widget:

    <a href="http://link.to/page/here/" class="image_hover"></a>

    Please navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Add the following CSS:

    .image_hover {
      background: url('http://url.to/normal.image') no-repeat;
    	background-size: cover;
      display: block;
      width: 250px;
      height: 200px;
    }
    .image_hover:hover {
      background-image: url('http://url.to/hover.image');
    }

    Adjust the dimensions and images to your desired images and sizing.

    You might also need to install the SiteOrigin CSS Editor.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread