Community Forums › Forums › Archived Forums › Design Tips and Tricks › Create 2 portfolio archive pages with Minimum Pro
Tagged: CPT, minimum pro, portfolio
- This topic has 8 replies, 2 voices, and was last updated 9 years, 6 months ago by
Bart van Maanen.
-
AuthorPosts
-
September 4, 2015 at 8:38 am #164563
Bart van Maanen
ParticipantFor 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 #164569Davinder Singh Kainth
MemberDuplicate 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 ThemesSeptember 4, 2015 at 10:19 am #164586Bart van Maanen
ParticipantThanks 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 #164601Davinder Singh Kainth
MemberYes, however archive-portfolio.php -> archive-expo.php
Sunshine PRO genesis theme
Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis ThemesSeptember 7, 2015 at 11:15 am #164841Bart van Maanen
ParticipantHi 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 #164879Davinder Singh Kainth
MemberCan 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 ThemesSeptember 8, 2015 at 6:26 am #164892Bart van Maanen
ParticipantI'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 #164916Davinder Singh Kainth
MemberTry 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 ThemesSeptember 8, 2015 at 1:20 pm #164950Bart van Maanen
ParticipantGreat 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%; }
-
AuthorPosts
- The topic ‘Create 2 portfolio archive pages with Minimum Pro’ is closed to new replies.