• Resolved chrismacleavy

    (@chrismacleavy)


    Hi team,

    Looking for some custom CSS to round the corners of the featured images on the Author theme. I had this at one stage, but an update lost it (make back ups, dude… back ups).

    Would appreciate if you could provide (again). Thanks!

    Chris

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi Chris,

    Could you please just open your style.css file from theme folder and go to the line 892 then replace with below css ? or just one property add can make your image corner round. border-radius: 35px;

    .featured-image > img, .featured-image > a > img {
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 35px;
    }

    Theme Author Ben Sibley

    (@bensibley)

    Hey Chris,

    This CSS should do the trick:

    .featured-image img {
      border-radius: 20px;
    }

    You can paste that into the Custom CSS section in the Customizer.

    Thread Starter chrismacleavy

    (@chrismacleavy)

    Thank you both so much – that CSS did exactly what I hoped.
    However, I seem to remember that a code modification added to Custom CSS actually rounded the entire post (as in, the top two corners of the featured image, and the bottom two corners of the post). Does that make sense?
    Can I simply put this code in a different place to get that effect again?

    Thanks so much for your quick replies!

    Theme Author Ben Sibley

    (@bensibley)

    Yea no problem ??

    Try this CSS out for rounding the corners at the bottom of the post too:

    .entry article {
      border-radius: 0 0 20px 20px;
    }
    Thread Starter chrismacleavy

    (@chrismacleavy)

    Thanks so much again for the quick reply.
    Check out https://www.chrismacleavy.com and you’ll see what I mean. The bottom corners of the featured image sit on the square corners of the post background. I’m hoping to round out the corners of the entire thing (featured image and post all together.

    Does that make sense?

    Theme Author Ben Sibley

    (@bensibley)

    Totally, I missed that sorry ??

    I’m going to post the complete CSS here you can copy and paste. I made a small update so that posts without Featured Images will still have all four corners rounded too.

    .featured-image img {
      border-radius: 20px 20px 0 0;
    }
    .entry article {
      border-radius: 20px;
    }
    .entry.has-post-thumbnail article {
      border-radius: 0 0 20px 20px;
    }
    Thread Starter chrismacleavy

    (@chrismacleavy)

    It’s a thing of beauty!!
    Thank you so much!

    Theme Author Ben Sibley

    (@bensibley)

    No problem, happy to help ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Featured Image Rounded Corners’ is closed to new replies.