Image in the featured posts on frontpage (Minimum Pro Theme)

Community Forums Forums Design Tips and Tricks Image in the featured posts on frontpage (Minimum Pro Theme)

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  jhs 7 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #97518

    jhs
    Member
    Post count: 38

    Hi!

    Could someone please give me a hint on how to get images in the featured posts on the frontpage like its done here:
    http://iamdavidgray.com (the cirkular images).

    This is how is looks like at the moment: http://byhage.no/

    Thanks!

    jh

    http://byhage.no/
    #98650

    Tom
    Participant
    Post count: 997

    The Minimum Pro theme uses the Genesis Grid Loop for the post excerpts on the front page. We’ll modify that code and add some more to make this happen. (This is largely from the StudioPress tutorial at http://my.studiopress.com/tutorials/genesis-grid-loop/).

    Add this code to the bottom of your ‘functions.php’ file:

    //* Add new image sizes
    add_image_size('grid-thumbnail', 130, 130, TRUE);

    Add featured images to your posts. Use the Regenerate Thumbnails plugin if the images have already been uploaded to your site.

    In the file ‘front-page.php’, find the section with Genesis grid loop helper (search for “genesis_grid_loop”).
    In this code, set the ‘grid image size’ as ‘grid-thumbnail’ ( ‘grid_image_size’ => ‘grid-thumbnail’ ).

    In your style.css file, add this code to the bottom of the file:

    .home .entry-content img  {
        border-radius: 130px; 
    }

    You can resize and restyle these images by changing the details in these code additions.


    Choose your next site design from over 350 Genesis themes.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #98835

    jhs
    Member
    Post count: 38

    Perfect!
    Thank you Tom. I really appreciate your help:)

    #99204

    jhs
    Member
    Post count: 38

    Now the frontpage displays my posts in to columns with a feature image (and that is great), but is there a way for me to separate between to categories by making the one categorie appear in the left column and the other one in the right column? And optimally set a title (name of the category) above each column?

    Thanks:)

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

You must be logged in to reply to this topic.