{decor}how to fix featured image width ?

Community Forums Forums Design Tips and Tricks {decor}how to fix featured image width ?

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 1 year, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19739

    Hafid
    Participant
    Post count: 4

    greetings

     

    here’s my blog:¬†http://www.abdelhafid.com/ , i’m using the decor genesis child theme, which is btw super amazing, big thanks for the guys behind it

    after fixed the extra white space from the page,post rule, this time i wanna fix the featured image width

    as you can see from the link above and from these images:

    http://awesomescreenshot.com/0fbx0nu2e

    http://awesomescreenshot.com/0cfx0nt01

    http://awesomescreenshot.com/0bbx0nxdd

    the image don’t fit the space, i’m using all kind of¬†dimensions, and i set the media settings to

    width 810px, height 550px, but still the image don’t fit, maybe it has to do with the fact i’m a RTL blog

     

    please help

     


    #19847

    braddalton
    Participant
    Post count: 10587

    Firstly, You need to make sure you crop the featured images so the width and height will resize properly to fit the features image size.

    Example: An image which is 600px X 300px resizes perfectly to 200 X 100

    If your featured image isn’t wide enough, it won’t stretch to fit the correct size. You’ll need to change each featured image.

    Then, you need to select the correct size from the Genesis > Theme Settings > Content Archives > Include the Featured Image? > Image Size. post-image

    I tested this and its correct.

    You can add support for more image sizes in your child themes functions.php file if needed however the defaults should be correct.

    [php]
    /** Add new image sizes */
    add_image_size( ‘post-image’, 730, 285, TRUE );
    [/php]

    This code is there by default but if your images are smaller, they won’t crop to this size which is the default featured image size.


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.