Rename Portfolio and Porfolio Item Pages
Latest update: May 31, 2018 | Reading time: 1 to 2 minutesHere are the necessary steps to rename your portfolio and portfolio item pages:
(Here we are using awesome as an example substitute name for the portfolio)
IMPORTANT: Backup your site and database before proceeding.
You MUST have the latest version of Cleanstart installed, and the Cleanstart Child Theme activated.
1) Dashboard > Edit PORTFOLIO page > Edit Permalink:
and change
ttp://yourdomain.com/postfolio/
TO
http://yourdomain.com/awesome/
Click Update.
2) Go to your Cleanstart theme folder (usually found in /wp-content/themes/cleanstart/) and copy the file /includes/posttype/posttype-portfolio.php into the /extend/ folder of your Cleanstart child theme.
/wp-content/themes/cleanstart-child/extend/posttype-portfolio.php
3) Open this file, and find the following code, somewhere in line 70~72:
'rewrite' => array( 'slug' => _x('portfolio', 'URL slug','cleanstart');
and change the ‘portfolio’ to your custom name. Here I am using ‘awesome’ in my example:
'rewrite' => array( 'slug' => _x('awesome', 'URL slug','cleanstart');
Save the file.
4) Go to Settings > Permalinks -> Custom Permalink -> Paste the Following:
/%category%/%postname%/
Click Save Changes.
You should now be viewing your portfolio page and portfolio item pages from the custom URL.