• 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

Modern Portfolio:Changing number of posts in portfolio widget

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 › General Discussion › Modern Portfolio:Changing number of posts in portfolio widget

This topic is: not resolved

Tagged: modern portfolio, portfolio widget

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 10 months ago by demetria.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 1, 2016 at 2:52 pm #180372
    demetria
    Member

    Hi, I need to change the number of posts displayed in the portfolio widget from 3 across to either 4 or 5 across. I attempted to change my CSS to the following (in hopes that the percentage changes would make for a smaller table across), but it hasn't worked:

    .mpp-home .content .featuredpage,
    .mpp-home .content .featuredpost .entry,
    #services .alignright {
    float: left;
    margin-right: 2.564102564102564%; /* 60px / 1140px */
    width: 23.076923076923077%; /* 340px / 1140px */

    Thanks for your help in advance.

    http://www.websuccesscoaching.com
    March 2, 2016 at 5:11 pm #180479
    ᴅᴀᴠɪᴅ
    Member

    That's right, apart from you also need to change some more; namely, the nth-of-types

    Find

    
    .mpp-home .content .featuredpage:nth-of-type(3n+1), 
    .mpp-home .content .featuredpost .entry:nth-of-type(3n+1) {
        clear: left;
    }
    

    and change to...

    .mpp-home .content .featuredpage:nth-of-type(4n+1), 
    .mpp-home .content .featuredpost .entry:nth-of-type(4n+1) {
        clear: left;
    }

    Then find

    .mpp-home .content .featuredpage:nth-of-type(3n+3), 
    .mpp-home .content .featuredpost .entry:nth-of-type(3n+3) {
        margin-right: 0;
    }

    and change to

    .mpp-home .content .featuredpage:nth-of-type(4n+4), 
    .mpp-home .content .featuredpost .entry:nth-of-type(4n+4) {
        margin-right: 0;
    }

    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

    March 17, 2016 at 3:06 pm #181730
    demetria
    Member

    Thanks!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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

© 2026 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