Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #28043

    I would like the images in Enfold to have exactly square corners and no border at all. I haven’t been able to find any thread showing how to produce such square corners, though I’ve seen some discussing removing the border. All my image corners still come out slightly rounded. I would appreciate help on this.

    Thanks,

    John

    #136247

    Hi John,

    Do you have a live example we can see? I can’t think of any functions in the theme that add a border radius to images other than the testimonial user images.

    Regards,

    Devin

    #136248

    Yes. Please look at the featured images for the blog posts shown at the bottom of the home page, and for the featured images at the top of each post on the blog page, for this site:

    uufreethinker.com

    To my eye, these images are slightly rounded (not perfectly sharp corners).

    The site is still under construction, but I will temporarily activate it so that you can look at it.

    Thanks,

    John

    #136249

    Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:

    .avia-content-slider .slide-image, .avia-content-slider .slide-image img {
    border-radius: 0px;
    }

    Its small enough where I just hadn’t noticed it before but that should remove the border radius.

    Regards,

    Devin

    #136250

    Hi Devin,

    Thanks very much for your prompt reply. It worked fine for squaring the corners on the images at the bottom of the home page showing recent posts. It did not work for squaring the preview images on the blog page or individual post pages. However, by experimenting I found that including “.big-preview img” in the code you sent for custom.css file solved that problem. Here is what the code now says:

    .avia-content-slider .slide-image, .avia-content-slider .slide-image img, .big-preview img {

    border-radius: 0px;

    }

    A follow up question: I’m wondering if I should also include something to square the corners for “.small-preview img” and for “.related-posts img” as well? (I would like to square these corners too if I can.)

    If so, how exactly should I revise the above code? When I tried doing it myself to add these two additional bits of code it seemed to mess up the squared corners on the big-preview images that I had just fixed, so I took these bits back out. I expect I didn’t have the syntax right for adding it.

    Thanks for all your help.

    John

    #136251

    Hey,

    You can use this:

    .small-preview {
    border-radius: 0;
    }

    .related_posts img, .related_posts a {
    border-radius: 0;
    }

    Regards,

    Ismael

    #136252

    Hi Ismael,

    That’s terrific. Works perfectly. May thanks to you and Devin for such prompt and great support. My problem is fully solved.

    John

    #136253

    Hey,

    Glad we could help. :)

    Cheers,

    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How create images with exactly square corners (no rounding)?’ is closed to new replies.