• Home
  • WordPress
    • How To
    • Plugins
    • Themes
      • Genesis
      • Themify
      • Mysite myway
    • Security
    • Developer
    • Teaching
    • Conference
    • Chat
  • Blog
  • About
  • Freelance
    • Plugins
    • Teaching
    • Need help?
    • CV og ref.
  • Contact

Easy Web Design Tutorials

WordPress Tutorials and more

  • Home
  • WordPress
    • How To
    • Plugins
    • Themes
      • Genesis
      • Themify
      • Mysite myway
    • Security
    • Developer
    • Teaching
    • Conference
    • Chat
  • Blog
  • About
  • Freelance
    • Plugins
    • Teaching
    • Need help?
    • CV og ref.
  • Contact

14 March - 2015 By Paal Joachim 14 Comments
Last updated on: November 21, 2015

Code used in Minimum Pro and Executive Pro

StudioPress have two Child Themes that contain custom post types: Minimum Pro and Executive Pro.

Minimum Pro Demo

Minimum Portfolio Post type
The first code contains the custom portfolio post type added to the Minimum Pro child theme functions.php file. Adding the code to your own child theme functions file will include a new sidebar item called Portfolio.

archive-portfolio.php
Creates a listing of your portfolio. The file is added to your child theme root folder.

single-portfolio.php
Creates a single page layout for each image. The file is added to your child theme root folder.

CSS code
I included the CSS code inside the style.css file that contains the word Portfolio. You can add it to your own stylesheet and modify it as you choose.

Below is the code for:
1. Code used inside the functions.php file.
2. Code used in the archive-portfolio.php file.
3. Code used inside the single-portfolio.php file.
4. Code used inside the style.css file.

 

The result of the Minimum Pro single-portfolio.php page.

Genesis Minimum Pro Single Portfolio page

Genesis Minimum Pro Single Portfolio page

 

The result of the Minimum Pro archive-portfolio.php page.

Genesis Minimum Pro Archive Portfolio listing

Genesis Minimum Pro Archive Portfolio listing

 

Executive Pro Demo

The code used in the Executive Pro is similar to Minimum Pro but contains a few more features such as taxonomy (a way to group posts similar to a category or tag). https://codex.wordpress.org/Taxonomies

Executive Pro Portfolio Post type
The first code contains the custom portfolio post type added to the Executive Pro child theme functions.php file. Adding the code to your own child theme functions file will include a new sidebar item called Portfolio.

archive-portfolio.php
Creates a listing of your portfolio. The file is added to your child theme root folder.

single-portfolio.php
Creates a single page layout for each image. The file is added to your child theme root folder.

CSS code
I included the CSS code inside the style.css file that contains the word Portfolio. You can add it to your own stylesheet and modify it as you choose.

Taxonomy (Bottom file).  The file is added to your child theme root folder.

The new Executive Pro sidebar
Notice the added Taxonomy item called Types.

Custom Post Type sidebar options

Custom Post Type
sidebar options

 

Executive Pro looks fairly similar to Minimum Pro.
One difference is that the Archive page uses three columns instead of two.

 

The result of the Executive Pro single-portfolio.php page.

Genesis Executive Pro Single Portfolio page

Genesis Executive Pro Single Portfolio page

 

The result of the Executive Pro archive-portfolio.php page.

Genesis Executive Pro Archive Portfolio Listing

Genesis Executive Pro Archive Portfolio Listing

Share this:

  • Email

Categories: Developer, Genesis, WordPress

Paal Joachim Romdahl

I enjoy teaching and creating tutorials. As well creating web sites.
I help people gain WordPress knowledge through my easy to follow tutorials and specialized training. Contact me for more information on how I can improve your WordPress skills and to help get your web site quickly up and running.

Comments

  1. kumar says

    2 October - 2019

    sir header me custom menu kese lagaye plz help child theme me no show genesis primery menu only show my custom menu plz give me php code thankyou

    Reply
  2. EJIGA GODWIN JNR says

    1 February - 2016

    Hello can you tip me on how to disable post meta info ( Categories and Tags) on homepage and single post of genesis eleven pro theme. which is based on Genesis frame work.
    I am using the Eleven pro theme on clickableblog.com
    Ejiga Godwin Jnr recently published How to Get a Free Custom Domain from 1and1.com

    Reply
    • Paal Joachim says

      3 February - 2016

      A simple way is to right click in your browser and find the correct CSS class.
      The CSS class that categories and tags use are:
      .entry-footer .entry-meta {
      border-top: double #ddd;
      padding-top: 12px;
      display: none; /* I added the display none to hide categories and tags */
      }

      See if that works for you.

      Reply
  3. Trine says

    30 May - 2015

    I have a question that may not really fit this post, but I will give it a try. I would like to use the Portfolio feature to display my lectures but I would like to add a descriptive text beneath each portfolio photo, do you have any solutions to that?

    Thanks a lot, much appreciated.

    Reply
    • Paal Joachim says

      8 June - 2015

      Hei Trine

      You could post at the Studiopress forums and ask about this, as I am not sure and would have to do similar research to figure out the same thing. After having received a useful reply it would be nice of you to also post the answer to the question here. Have a great day! (Ha en fin dag!)

      Reply
  4. Heather says

    28 April - 2015

    You forgot this piece of code and some of the css for the genesis grid.
    Functions
    //* Add new image sizes
    add_image_size( ‘portfolio’, 540, 340, TRUE );

    CSS
    .genesis-grid-even,
    .genesis-grid-odd {
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 30px;
    margin-bottom: 3rem;
    padding: 0;
    width: 47%;
    }

    .genesis-grid-even {
    float: right;
    }

    .genesis-grid-odd {
    clear: both;
    float: left;
    }

    Reply
    • Paal Joachim says

      28 April - 2015

      Thank you for adding it Heather!

      Reply
  5. Heather says

    21 April - 2015

    Also, when I create a portfolio item and check it on the front of the site, I get a 404 error rather than seeing the portfolio single post. What do I need to change to make this work with my genesis theme graceful?

    Reply
    • Paal Joachim says

      21 April - 2015

      Hey Heather

      Are you figuring it out?

      To get the best possible answer you could post at the https://www.studiopress.com/forums/

      Have a great day!

      Reply
  6. Heather says

    21 April - 2015

    So I added every file and the functions code to functions and the css. I see my portfolio post type, but I don’t see my page template in the drop down area of a page so I can apply it. I tried changing to code in functions to say my child theme’s name rather than “minimum” but that didn’t work.

    Also, How would I add taxonomies to minimum? Can I use the same concept in the executive pro?

    Reply
    • Heather says

      21 April - 2015

      okay, so I figured it out. you have to keep the wording “minimum” also, you have to create a custom menu item that goes to mysite.com/portfolio, you can’t actually choose this template into a page (how would you do this?). So not my question is, If i want this page to be editable so a client can write some wording above the portfolio section, how would I customize that?

      Reply
  7. Jose says

    10 April - 2015

    I think you forgot to include portfolio image sizes in both themes

    Reply
    • Paal Joachim says

      15 April - 2015

      Hey Jose

      That was om purpose since they are so similar but anyhow I went and added images for both.

      Reply
  8. Ashish Ajani says

    13 March - 2015

    Nice article Paal, I would like to share a free and useful WordPress plugin “WP Show Stats” here. This plugin can show how many inbuilt and how many custom post types used in WordPress site. It will be very helpful for admin to keep track on how custom post types used and how many records are the for each custom post types. It also provides other various statics about usage of blog posts, categories, tags, users, comments, etc..

    https://wordpress.org/plugins/wp-show-stats

    Reply

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2021 · By Easy Web Design Tutorials · Built on the Genesis Framework · WordPress · Log in · ⇪

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.