• 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

Minimum Pro – 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 › Minimum Pro – Portfolio

This topic is: not resolved

Tagged: minimum pro theme, portfolio, Studiopress

  • This topic has 9 replies, 2 voices, and was last updated 9 years, 10 months ago by yolohtzin.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • November 22, 2013 at 8:19 am #74947
    yolohtzin
    Member

    Hi - how do I change PORTFOLIO on 'portfolio' page - I want it to read Gallery instead - thanks!

    Heather

    http://heatherhess.ca/portfolio/
    November 22, 2013 at 8:28 am #74950
    Brad Dalton
    Participant

    You'll need to change the name of the slug in your child themes functions.php file around line 152 from portfolio to gallery:

    //* Create portfolio custom post type
    add_action( 'init', 'minimum_portfolio_post_type' );
    function minimum_portfolio_post_type() {
    
    	register_post_type( 'portfolio',
    		array(
    			'labels' => array(
    				'name'          => __( 'Gallery', 'minimum' ),
    				'singular_name' => __( 'Gallery', 'minimum' ),
    			),
    			'exclude_from_search' => true,
    			'has_archive'         => true,
    			'hierarchical'        => true,
    			'menu_icon'           => get_stylesheet_directory_uri() . '/images/icons/portfolio.png',
    			'public'              => true,
    			'rewrite'             => array( 'slug' => 'gallery' ),
    			'supports'            => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes', 'genesis-seo' ),
    		)
    	);
    	
    }
    

    Tutorials for StudioPress Themes & WooCommerce.

    November 22, 2013 at 8:37 am #74953
    yolohtzin
    Member

    It didn't work - Parse error: syntax error, unexpected T_STRING in /home4/flowers/public_html/heatherhess.ca/wp-content/themes/minimum-pro/functions.php on line 83

    In this coding I changed Portfolio to read Photography (I changed it back to Portfolio but now I have to figure out how to fix this):

    //* Create portfolio custom post type
    add_action( 'init', 'minimum_portfolio_post_type' );
    function minimum_portfolio_post_type() {

    register_post_type( 'portfolio',
    array(
    'labels' => array(
    'name' => __( 'Portfolio, 'minimum' ),
    'singular_name' => __( 'Portfolio', 'minimum' ),
    ),
    'exclude_from_search' => true,
    'has_archive' => true,
    'hierarchical' => true,
    'menu_icon' => get_stylesheet_directory_uri() . '/images/icons/portfolio.png',
    'public' => true,
    'rewrite' => array( 'slug' => 'portfolio' ),
    'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes', 'genesis-seo' ),
    )
    );

    }

    Heather

    November 22, 2013 at 8:39 am #74955
    Brad Dalton
    Participant

    Tested locally and works.

    The line number the code on isn't on line 152.


    Tutorials for StudioPress Themes & WooCommerce.

    November 22, 2013 at 8:40 am #74956
    yolohtzin
    Member

    Why am I getting that error message? Heather

    November 22, 2013 at 8:41 am #74957
    Brad Dalton
    Participant

    Please send me your login details for FTP or cPanel and i'll fix it. http://wpsites.net/contact/


    Tutorials for StudioPress Themes & WooCommerce.

    November 22, 2013 at 8:48 am #74960
    yolohtzin
    Member

    Where do i email it to please

    Heather

    November 22, 2013 at 8:52 am #74961
    yolohtzin
    Member

    Silly question - I just emailed you - Heather

    November 22, 2013 at 10:18 am #75029
    Brad Dalton
    Participant

    Fixed Heather.


    Tutorials for StudioPress Themes & WooCommerce.

    November 22, 2013 at 10:35 am #75031
    yolohtzin
    Member

    Thanks - Please let me know what did I do wrong please so I can learn how to do these changes myself - thanks so much Brad - you made my day - Heather

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

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