Help needed with Minimum theme customization

Community Forums Forums Design Tips and Tricks Help needed with Minimum theme customization

This topic is: resolved

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  Jenxi Seow 1 year, 9 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #20392

    Jenxi Seow
    Participant
    Post count: 4

    I have two questions:

    1. I would like to use the portfolio page of the Minimum theme on the home page. Instead of portfolio post type, I want to display my blog posts. How can I go about doing that?

    2. How can I ensure that the featured image of each blog post works with the theme? Do I have to go through each post and change the featured image so that they are 1600×600? For example, the featured image is very big on this page because it is a portrait image instead of landscape: http://iamjenxi.com/first-photo-walk-of-2013/ Does it mean that I would need to change all portrait photos to landscape ones or at least crop them?


    RubyCoded – Making the internet look better

    #22869

    cehwitham
    Participant
    Post count: 396

    To do this you would have to create a page_blog.php template file and copy into it all the code out of the Minimum archive-portfolio.php template file. Then setup a page to use the Blog page template and under settings > reading set the homepage to be this page rather than displaying your latest posts.

    You’ll then just need to apply the styles from the portfolio page to your homepage.


    Twitter: cehwitham Web: cehwitham.com

    #23125

    Jenxi Seow
    Participant
    Post count: 4

    Thanks for the reply! That worked. Now I just need to figure out the styles and how to modify what post meta I want to appear. Where would I need to go to edit those?


    RubyCoded – Making the internet look better

    #23355

    cehwitham
    Participant
    Post count: 396

    Post meta can be filtered by putting the following code in the template file and amending accordingly:

    // Customize the post meta function
    add_filter( 'genesis_post_meta', 'post_meta_filter' );
    function post_meta_filter($post_meta) {
    $post_meta = '[post_categories before="Filed Under: "] [post_tags before="Tagged: "]';
    return $post_meta;
    }

    The portfolio page styles start around line 689 in style.css:

    .post-type-archive-portfolio .portfolio {
    float: left;
    margin: 0 15px 30px;
    width: 340px;
    }

    You’ll need to copy any of the ones that relate to the portfolio archive and change them to be something like .home .post {… }

    Make sure you also copy any styles in the media queries to keep it responsive.


    Twitter: cehwitham Web: cehwitham.com

    #23890

    Jenxi Seow
    Participant
    Post count: 4

    Thank you very much! I managed to get it working the way I want it to. http://iamjenxi.com


    RubyCoded – Making the internet look better

    #24521

    cehwitham
    Participant
    Post count: 396

    Great. Looks good.

    Just watch what happens with longer titles and the images lining up below them. Maybe putting the images before the titles would get around this and ensure the tops of the images always line up?

    Chris


    Twitter: cehwitham Web: cehwitham.com

    #24566

    Jenxi Seow
    Participant
    Post count: 4

    That’s one problem. I’ve shrunk the font size of the titles so the misalignment is not that obvious but it’s still not as clean. I’ve switched them around but I find that it’s less striking with the title coming after the image. But maybe it’s just me. Another way around this would be to start working my brains to come up with short, concise titles.


    RubyCoded – Making the internet look better

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

You must be logged in to reply to this topic.