Dentalia has now been updated to 2.3 and a major update for Recycle is coming soon. We hope you enjoy the new features! Thanks for your patience!

Okay
  Public Ticket #3249206
Set border-radius on Orion Image widget
Closed

Comments

  •  8
    Wei started the conversation

    Hi,

    Do we have some simple options to make an Orion Image Widget has border-radius?

    Seems we cannot make the image corners rounded by just setting the right-hand side border-radius options.

    Thanks!

    Attached files:  截圖 2023-03-05 下午11.00.37.png

  •  565
    OrionThemes replied

    Hi,

    Due to the widget's architecture, this will need to be done with a custom class and some CSS. This type of customization is not included in support, but I think I have an example already somewhere. I am happy to share it with you. Let me get back to you with the solution tomorrow morning.

    Kind regards,

    Timea

  •  565
    OrionThemes replied

    Hi,

    Here is the CSS as promised. There are 2 ways you can go. You can apply the effect to specific images only with a class, or apply the rounding to all Orion Image Widgets at once.

    1. CSS + CLASS

    Paste this into theme options and adjust the border-radius as you want:

    .rounded-img .so-widget-orion_image_w .image-w {
        border-radius: 10px;
        overflow: hidden;
    }

    Add the rounded-img class to all the image widgets where you want to use this rounding. Widgets Style -> Attributes -> Widget Class.

    6987272430.png

    ---

    2. APPLY CSS TO ALL IMAGES AT ONCE

    If you want to use this effect on all images added with Orion Image Widget, then ignore the class and add this CSS to Theme Options:

    .so-widget-orion_image_w .image-w :not(.rounded) {
        border-radius: 10px;
        overflow: hidden;
    }

    This will add rounded corners to all images, except the ones with a circle shape.

    I hope this helps.

    Kind regards,

    Timea


  •  8
    Wei replied

    Thank you for the detailed answer!!

    It works well.