Community Forums › Forums › Archived Forums › Design Tips and Tricks › Minimum Pro – Portfolio
Tagged: minimum pro theme, portfolio, Studiopress
- This topic has 9 replies, 2 voices, and was last updated 11 years, 2 months ago by
yolohtzin.
-
AuthorPosts
-
November 22, 2013 at 8:19 am #74947
yolohtzin
MemberHi - 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 #74950Brad Dalton
ParticipantYou'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' ), ) ); }
November 22, 2013 at 8:37 am #74953yolohtzin
MemberIt 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 #74955Brad Dalton
ParticipantTested locally and works.
The line number the code on isn't on line 152.
November 22, 2013 at 8:40 am #74956yolohtzin
MemberWhy am I getting that error message? Heather
November 22, 2013 at 8:41 am #74957Brad Dalton
ParticipantPlease send me your login details for FTP or cPanel and i'll fix it. http://wpsites.net/contact/
November 22, 2013 at 8:48 am #74960yolohtzin
MemberWhere do i email it to please
Heather
November 22, 2013 at 8:52 am #74961yolohtzin
MemberSilly question - I just emailed you - Heather
November 22, 2013 at 10:18 am #75029Brad Dalton
ParticipantNovember 22, 2013 at 10:35 am #75031yolohtzin
MemberThanks - 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
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.