• 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

Create 2 portfolio archive pages with Minimum Pro

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 › Create 2 portfolio archive pages with Minimum Pro

This topic is: resolved

Tagged: CPT, minimum pro, portfolio

  • This topic has 8 replies, 2 voices, and was last updated 10 years, 2 months ago by Bart van Maanen.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • September 4, 2015 at 8:38 am #164563
    Bart van Maanen
    Participant

    For a website I'm working on I would like to create 2 portfolio archive pages, the existing one ('portfolio') and one for - say - 'expositions'. So they can be presented as two seperate pages, both in the frontend and in the backend menu for this particular client.

    They can have the same layout and structure.

    What would be the smartest way to do this using the Minimum and Genesis code?

    [the site is not online yet]

    September 4, 2015 at 9:16 am #164569
    Davinder Singh Kainth
    Member

    Duplicate existing portfolio custom post type files and rename it with new slug / name.

    You can also try plugin like Go Portfolio for this.


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    September 4, 2015 at 10:19 am #164586
    Bart van Maanen
    Participant

    Thanks Davinder, so you mean make a duplicate of archive-portfolio.php and single-portfolio.php and renaming those to something like expo-archive-portfolio.php and expo-single-portfolio.php?

    Or as in archive-expo.php and single-expo.php

    As well as replacing the _portfolio_ slugs in those files?

    September 4, 2015 at 12:58 pm #164601
    Davinder Singh Kainth
    Member

    Yes, however archive-portfolio.php -> archive-expo.php


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    September 7, 2015 at 11:15 am #164841
    Bart van Maanen
    Participant

    Hi Davinder, I copied and adapted and uploaded above files. I also registerd the post type 'exposities' (Dutch) so it shows up in the backend menu, with its own icon. Pretty cool. After saving the permalinks the page showed on the frontend.

    But now all portfolio cover photos on the archive pages show in one column, instead of two. I tried adding the .post-type-archive-expositie tag to the css in the entry section but to no improvement.

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

    Do you have any clue? Or anyone else of the members of this great forum?
    Thanks!

    September 8, 2015 at 12:55 am #164879
    Davinder Singh Kainth
    Member

    Can you post link of the url in question? Your ".entry:nth-of-type(2n)" is correct, probably using incorrect class in the front.


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    September 8, 2015 at 6:26 am #164892
    Bart van Maanen
    Participant

    I'm sorry the site is not live yet.

    Which class could it be?

    div.entry.content is set to 1140px, and div.portfolio-image (used by both pages) is also set to 1140 on both odd and even (not to 50%).

    The image size set in functions.php is correct (540x340). See this screenshot:

    https://www.dropbox.com/s/xpxdps962dyn82q/Expositie%202015-09-08%2014-02-29.png?dl=0

    September 8, 2015 at 8:58 am #164916
    Davinder Singh Kainth
    Member

    Try this code

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

    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    September 8, 2015 at 1:20 pm #164950
    Bart van Maanen
    Participant

    Great Davinder, that works!

    I also kopied and changed the (2n) part, so now it looks like this:

    .post-type-archive-expositie .entry:nth-of-type(2n) {
    	float: right;
    	padding-left: 30px; 
    }
    
    .post-type-archive-expositie .entry:nth-of-type(2n+1) { 
       clear: left;
       padding-right: 30px;
    }
    
    .post-type-archive-expositie .entry {
       float: left;
       margin-bottom: 60px;
       width: 50%;
    }
  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Create 2 portfolio archive pages with Minimum Pro’ is closed to new 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