• Hi,

    I am trying to create a new full width homepage. I would like to add an image and a slider at the top of the page. I can add the slider no problem with an image at 980 px

    However whenever I upload an image directly from my media library it seems to be reducing the size. I have tried this with different image sizes of 768px and 780px but it seems to reduce all images to 640px

    Can anyone assist?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi J

    This is because the theme is build such, if you will see the line number 43 of the theme’s functions.php file you would see the codes.

    add_image_size( 'thumb-small', 50, 50, true );
    add_image_size( 'thumb-medium', 300, 135, true );
    add_image_size( 'thumb-featured', 640, 250, true );

    In short any images uploaded to the media will also be resized to these three sizes too. For more details about this function check the codex.

    But you can always use the original size of the image by using the “full” attribute, details of which you can find here.

    hope it helps!!

    Thanks

    Hello Maruti,

    I tried changing the last line to:

    add_image_size( ‘thumb-featured’, 640, 960, true );

    but it did not change anything. I would like the featured image on my home page to be bigger. Is there something I am missing?

    Thanks!

    Hi sincerelyjean

    After doing that, any new image you upload would have the new thumb-featured image size. For the older images please use the regenerate thumbnails plugin to make it work.

    Hope it helps !!

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images Shrink in Full Width Page’ is closed to new replies.