How To Make Image Clickable - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

How To Make Image Clickable

R

Remco

SP Page Builder 4 years ago

Hi,

Because there are still too many improvements needed to SP Booking before I can use it, I am recreating the layout with SP Page Builder.

Now I have a page on which all group trips (groepsreizen) will be displayed (https://moventa.nl/site/groepsreizen) here is a photo that zooms in when you hover over it. A title with hyperlink, a button 'Bekijk reis' with hyperlink, but now I want the photo also to be referred to the relevant page by means of a hyperlink (https://moventa.nl/site/groepsreizen/parijs).

How do I get this done? A very rapid response is desirable.

Regards, Remco

0
15 Answers
R
Remco
Accepted Answer
4 years ago #18795

Thanks, this css solved my issue.

.sppb-addon.sppb-addon-single-image.sppb-text-center.zoom {
    overflow: hidden;
}
.zoom img.sppb-img-responsive {
    transition: transform .5s, filter 1.5s ease-in-out;
}
.zoom img.sppb-img-responsive:hover {
    filter: grayscale(0);
    transform: scale(1.4);
}
.zoom .sppb-img-responsive {
    object-fit: cover;
}
0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #18621

Hi there,

Thanks for contacting us. You have used the SP Easy Gallery for the gallery. In this extension, there is no option to use the hyperlink.

-Thanks

0
R
Remco
Accepted Answer
4 years ago #18623

Hi Toufiq,

I am not talking about SP Image Gallery. I want the images on https://moventa.nl/site/groepsreizen to link to https://moventa.nl/site/groepsreizen/parijs. Now only the title and button are clickable, i want the image also to be clickable.

Regards, Remco

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #18661

The image overlay addon doesn't have the option to add a link behind the image. You can use the image addon or featurebox addon. Thanks

0
R
Remco
Accepted Answer
4 years ago #18663

But i can't use the Image Animation like 'Zoom In' with the image addon, can I? That's why i chose the image overlay addon.

So, how can i use image addon with animation 'zoom in'?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #18670

Add this css code inside the custom.css file and add zoom class in your image addon css class field.

https://prnt.sc/13fuvfn

.zoom {
  transition: transform .2s;

}

.zoom:hover {
  -ms-transform: scale(1.5); /* IE 9 */
  -webkit-transform: scale(1.5); /* Safari 3-8 */
  transform: scale(1.5); 
}
0
R
Remco
Accepted Answer
4 years ago #18674

See https://www.moventa.nl/site/groepsreizen

How can i make it exact as the rest? Square instead of rectangle. The image should zoom within the square. You know what i mean?

Regards, Remco

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #18678

Add this css code inside the custom.css file instead of previous css code.

.sppb-addon.sppb-addon-single-image.sppb-text-center.zoom {
    overflow: hidden;
}
.zoom img.sppb-img-responsive {
    transition: transform .5s, filter 1.5s ease-in-out;
}
.zoom img.sppb-img-responsive:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}
0
R
Remco
Accepted Answer
4 years ago #18680

We are almost there. See https://www.moventa.nl/site/groepsreizen. If you compare the image from the first column with the rest, you will see that the photo is now slightly stretched. It is not scaled proportionally. How can I fix that?

Regards, Remco

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #18759

Hi there, Please increase the scale parameter.

.zoom img.sppb-img-responsive:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

to

.zoom img.sppb-img-responsive:hover {
    filter: grayscale(0);
    transform: scale(1.4);
}

-Thanks

0
R
Remco
Accepted Answer
4 years ago #18785

Hi,

This only changes how far it is zoomed in, but not that the image is stretched (proportions are no longer correct). The Eiffel Tower is suddenly squeezed.

Regards, Remco

0
Pavel
Pavel
Accepted Answer
4 years ago #18790

Hi. Try this

.zoom .sppb-img-responsive {
    object-fit: cover;
}
0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #18897

Does solve your issue? Please let me know. Thanks

0
R
Remco
Accepted Answer
4 years ago #18901

Yes, see 'accepted answer' above. Multiple posts combined.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #18907

Thanks

0