• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Minimum Pro Theme – Portfolio Page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Minimum Pro Theme – Portfolio Page

This topic is: not resolved

Tagged: 3 column, minimum, portfolio

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 3 months ago by renwil.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 8, 2015 at 3:41 pm #140105
    renwil
    Participant

    How can I change how many images show up on each row in the portfolio page. I want to change it from two images to three images on each row.

    February 8, 2015 at 5:04 pm #140115
    Tom
    Participant

    Hi @renwil,

    Edit your child theme files as follows to change the portfolio loop and matching CSS for a three-column output using the built-in Genesis Column Classes. Adjust the CSS styles as required.

    In the template file archive-portfolio.php, delete or comment-out these lines (~line 9):

    //* Add even/odd post class
    add_filter( 'post_class', 'minimum_even_odd_portfolio_post_class' );
    function minimum_even_odd_portfolio_post_class( $classes ) {
    
        global $wp_query;
        $classes[] = ($wp_query->current_post % 2 == 0) ? 'portfolio-odd' : 'portfolio-even';
    
        return $classes;
    
    }

    In the same place in archive-portfolio.php, add the following code, courtesy of Bill Erickson:

    /**
     * Breaks the posts into 3 columns
     * @link http://www.billerickson.net/code/grid-loop-using-post-class
     */
    add_filter( 'post_class', 'tsm_archive_post_class' );
    function tsm_archive_post_class( $classes ) {
        global $wp_query;
        // Keeps columns out of secondary loops ie: Genesis Featured Post widgets
        $classes[] = 'one-third';
        if( 0 == $wp_query->current_post || 0 == $wp_query->current_post % 3 )
            $classes[] = 'first';
        return $classes;
    }

    In style.css, delete or comment-out these lines under Content Areas ... Entries (~line 1230):

    .post-type-archive-portfolio .entry {
        float: left;
        margin-bottom: 60px;
        width: 50%;
    }
    
    .post-type-archive-portfolio .entry:nth-of-type(2n) {
        float: right;
        padding-left: 30px;
    }
    
    .post-type-archive-portfolio .entry:nth-of-type(2n+1) {
        clear: left;
        padding-right: 30px;
    }

    Add this code in the same place:

    .post-type-archive-portfolio .entry {
        float: left;
        margin-bottom: 60px;
        margin-bottom: 6rem;
    }
    
    .post-type-archive-portfolio .one-third .first {
        clear: left;
    	float: left;
    }

    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    February 10, 2015 at 9:19 pm #140430
    renwil
    Participant

    Thanks for the info. I tried this and it didn't work. Now my portfolio page doesn't show anything. The site is not published yet since I'm not done with it, so I can PM someone the log in information to see if they can help me.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble