• Resolved Ankit Khanna

    (@lunylad)


    Hi,
    I want my homepage post lists to show bigger images and headings similar to what they appear when settings are on standard instead of grid or lists. But I do not want to show post content on a home page other than heading. Is it possible to do?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Alexander Agnarson

    (@alxmedia)

    Hi,

    For this you would need to edit content.php with a child theme and remove the info you want to hide from that file.

    Thread Starter Ankit Khanna

    (@lunylad)

    I am sorry, but I am not that good with php. Is it possible to slightly increase the post-thumbnail(featured image) size on the homepage for all posts in a list form?

    Theme Author Alexander Agnarson

    (@alxmedia)

    Try:

    
    .post-list .post-inner { padding-left: 250px; }
    .post-list .post-thumbnail { margin-left: -250px; max-width: 220px; }
    
    Thread Starter Ankit Khanna

    (@lunylad)

    I’ve tried it, but it messed up the homepage in a mobile view. No worries, I’ll try setting it up as a grid view, but the only problem with gridview is that we do not have post thumbnails setup as “Square”. They are somehow rectangular and hiding some important aspects of the featured image in some posts. is it possible to have square thumbnails for grid view option on homepage for posts?

    • This reply was modified 5 years, 2 months ago by Ankit Khanna.
    Theme Author Alexander Agnarson

    (@alxmedia)

    If you want square size, you need to edit line 71-72 in functions.php with a child theme.

    Edit these dimensions as you wish:

    
    add_image_size( 'boxstyle-medium', 520, 292, true );
    add_image_size( 'boxstyle-large', 720, 404, true );
    

    And then run the regenerate thumbnails plugin once: https://www.ads-software.com/plugins/regenerate-thumbnails/

    Or you can limit the css I gave you to larger screens only, example:

    
    @media only screen and (min-width: 960px) {
    .post-list .post-inner { padding-left: 250px; }
    .post-list .post-thumbnail { margin-left: -250px; max-width: 220px; }
    }
    
    Thread Starter Ankit Khanna

    (@lunylad)

    Thank you! I’ve tried the one in CSS and it worked!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Featured image size on home page’ is closed to new replies.