• 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

portfolio thumbnail spacing – modern portfolio

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 › portfolio thumbnail spacing – modern portfolio

This topic is: not resolved

Tagged: Modern Portfolio theme, portfolio images

  • This topic has 7 replies, 4 voices, and was last updated 10 years, 9 months ago by suburbanite.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • January 7, 2014 at 11:52 pm #83945
    dmcleod87
    Member

    hi all,

    i've setup 3 different genesis featured widget amplified widgets in the 'portfolio' widget section on the homepage of modern portfolio. however the third portfolio item appears on a new line, rather than inline with the other two.

    they display on the one line when i use the one widget, however i need to have custom links for each portfolio using the 'custom field for link' option in the widget (long story short i had to do it this way because i want these thumbnails to link to my CPT portfolio post pages, rather than blog posts)

    does anyone know why they aren't appearing on the same line? i suspect it has something to do with this bit of code maybe?

    .footer-widgets-1,
    #blog .featuredpost .post:nth-of-type(3n+1),
    #portfolio .featuredpost .post:nth-of-type(3n+1) {
    	margin-right: 5.555555555%; /* 60px / 1080px */
    }

    i can't get my head around nth-of-type and nth-child!

    thanks in advance!

    http://www.portfolio.dylanmcleod.net.au/
    September 3, 2014 at 2:48 pm #122658
    suburbanite
    Member

    I am having the same issue. I would like for the thumbnails to be four to a line. It looks like there should be plenty of space for this, but I'm only able to get three on a line, then the fourth goes down to a next line.

    My site is located here: http://www.angelawdesign.com/?page_id=465

    September 11, 2014 at 11:04 am #123960
    suburbanite
    Member

    Bump. Can anyone help with this?

    October 1, 2014 at 6:20 am #126409
    Jeremy
    Participant

    Hi Angie,
    The issue is on line 1250 of style.css

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

    Change this to say....

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

    Let me know how you go.

    Jeremy


    If you want to say thanks Follow me on Twitter | My Website

    October 1, 2014 at 6:20 am #126410
    Brian Gardner
    Member

    My guess is that it has something to do with the following CSS on line 1251:

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

    If you're adding a 4th one across, that really should be changed to 4n+1, because it's trying to clear the column after 3 currently.


    My Blog | Twitter | Facebook | Instagram | Google +

    October 1, 2014 at 6:21 am #126411
    Brian Gardner
    Member

    Bwahah, Jeremy beat me to the punch by less than a minute.


    My Blog | Twitter | Facebook | Instagram | Google +

    October 1, 2014 at 7:07 am #126417
    Jeremy
    Participant

    Brian Gardner himself. Great to see you in the forums 🙂


    If you want to say thanks Follow me on Twitter | My Website

    October 7, 2014 at 11:02 am #126993
    suburbanite
    Member

    Thank you so much guys, that totally worked! This community is the best : )

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 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