Image Radius On Feature Box - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

Image Radius On Feature Box

Alison

Alison

SP Page Builder 5 months ago

Hi

I am using feature box and I want the image to be round. I put in a Border Radius of 200 on the image and the image look circlular on the SPPB edit page. But when I publish the page the image is square.

Can you help please?

Image showing edit page showing image settings and result on the edit page is here https://postimg.cc/62YVK4yG

Image showing published page is here https://postimg.cc/fVcBFLjY

thanks Alison

0
8 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 5 months ago #193455

Alison, you can always create a custom class name, and use it in addons or even articles which should have radius-border for image. It's time saver and so simple, I'm surprised no one here has come up with it ;]

  1. Inside template custom.css or Custom CSS area add:

.circle img { border-radius: 100% !important; }

  1. Then inside selected Addon settings > Style (tab) > CSS Class : circle

And yes, 100% is better than px value. Becuase it gives you real circle shape regardless of image size.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #193432

HI

Thanks for contacting us. You can use this CSS in your custom.css file

img.sppb-img-responsive {
    border-radius: 200px !important;
}

-Regards.

0
Alison
Alison
Accepted Answer
5 months ago #193434

hi Mehtaz

That works, but it makes all images throughout the site round. I just want these specific images to respond to the setting - is that possible?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #193435

Sorry for that, could you please mention which portion exactly do you want to change?

0
Alison
Alison
Accepted Answer
5 months ago #193437

Just images in the specific Feature Boxes where I have set the radius to 200px like in the image shown

https://postimg.cc/62YVK4yG

They show as round on the edit page, but not on the published page. https://postimg.cc/fVcBFLjY

0
Alison
Alison
Accepted Answer
5 months ago #193438

But all feature boxes would be OK for this site - just not all images

0
Alison
Alison
Accepted Answer
5 months ago #193502

Thank you Paul, that is brilliant.

And you have just taught me something I will be able to use ongoing.

5 Star *****

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #193548

Hi Alison,

Glad to know that its solved and thanks for accepting the answer. And thanks Paul for helping her.

0