WordPress.org

Ready to get started?Download WordPress

Forums

Hueman
How to change size of homepage thumbails (4 posts)

  1. Craftulate
    Member
    Posted 6 months ago #

    The thumbnails for the posts on my homepage are cropped from the middle of my featured image. Is there any way to change the size of the thumbnail?

    I have tried the Post Thumbnail Editor plugin which didn't seem to make any difference.

    My blog is here: http://craftulate.com/

    Any help appreciated, thank you in advance.

  2. Alexander Agnarson
    Member
    Theme Author

    Posted 6 months ago #

    Hi,

    In functions.php, you would edit the following part of the alx_setup function, with a child theme:

    add_image_size( 'thumb-large', 720, 340, true );

    And then regenerate thumbnails once.

    Refer to the "Child Theme" section of the Help dropdown documentation in theme options to see how to work with a child theme.

  3. Craftulate
    Member
    Posted 6 months ago #

    Thanks for getting back to me Alex but I've never worked with a child theme before so if I could trouble you for a bit more help?

    I downloaded the sample child theme docs you recommended. I have created a child theme directory. I can open the style.css but I can't open the functions.php doc to edit it. Should I be able to? Or am I adding code to the style.css? I'm getting a bit lost on the child theme help section from WP.

    I'm thinking I am in way over my head here, but if you think I can do this I'd really love to get it fixed!

    Georgina

  4. ChrisSale
    Member
    Posted 6 months ago #

    It is a couple of minutes work to do what you require, but could take hours to explain to you step by step what to do. Here is the way I would do it (may not be the best, but any way that works will do).

    Using a program like FILEZILLA (it's free, and a tool like this makes life easier for working with WordPress) download the function.php file from the .../wp-content/themes/hueman folder onto your own computer.
    Open this function.php file using some text editor program (for example Windows Notepad) or Dreamweaver or similar program.

    Basically delete everything out of this functions file
    except the bit you want to change,
    ie. the alx_setup function.
    Edit this alx_setup_function as required.
    Save the file, and then use FILEZILLA to upload the file to your
    wordpress site, to .../wp-content/themes/hueman-child folder.
    The file is still called functions.php
    The function in the child theme (folder) will then get used in preference to the same function in the main Hueman theme (which you have not changed -- that is the benefit of using a child theme).

    You are not in this case altering the style.css file.
    (But if you do later want to make small changes to the CSS, then I would use exactly the same procedure as above (except start with the child style.css file)).

    If none of this makes any sense then you probably are in over your head (but could easily find a WP developer to make the change for you for a small sum). If you understand most of it but have a quick question it may get answered here :-)

Reply

You must log in to post.

About this Theme

About this Topic