Arcane theme: Override featured image cropping

  • Unknown's avatar

    I would like my featured image size to be in the ratio 3:2 instead of the preconfigured approximate 1:1 cropping.

    How can I do that?

    kind regards Michele

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    HI

    the pre-configured size of images are 333px height and 333px in the width.

    To modify the size of featured images you can add this line of CSS and edit the size of the height and weight to what you want,
    Here is the CSS you need to change:

    .img-featured {
        height: 333px;
        width: 333px;
    }

    Here is how to add Custom CSS using CSS editor in your theme:
    https://en.support.wordpress.com/custom-design/editing-css/

    If needed any further help please let us know

    Regards,
    Skobraf

  • Unknown's avatar

    Hi Thank you for the answer :)
    However, I am aware of that. I’ve already set that property for images in the css customiser. The problem is, that when you load a featured image onto a post it is cropped automatically (by the theme) into to some preconfigured format. I would like to overide that.

    -thanks!

  • Unknown's avatar

    Hi @michelesvanesquarcia, the sizing and cropping is done within the theme php script files, it is not something that can be changed with CSS as the theme and WordPress software actually creates temporary images off of your uploaded images, cropped and sized for the available space.

    This could be done with the WordPress.com Business plan upgrade, which includes the ability to create Child Themes and then edit the php scripting, but this would require a good working knowledge of php scripting.

  • Unknown's avatar

    @thesacredpath Although somewhat rusty, I am a certified professional java programmer. So a little php shouldn’t be a problem. Rather paying for a business plan, to be able to use the fine tweaking so annoyingly left out of the premium plan, annoys me and furthermore it is not a financial option at the moment :) Maybe some day ;) Thanks for your answer!

  • Unknown's avatar

    You are welcome, and let us know if you have additional questions.

  • The topic ‘Arcane theme: Override featured image cropping’ is closed to new replies.