hi guys, by default wordpress has a section on the left nav in the backend called “portfolio”. is there a way to change this to something else like “team”? I know this doesn’t really have to do with the theme but hoping you had some advice. Thanks!
Hey bobfurgo,
Thank you for the inquiry.
That is the portfolio post type from the theme. You can modify it by editing the includes > admin > register-portfolio.php file.
If you want, you can also deregister it by adding this code in the functions.php file.
remove_action('init', 'portfolio_register');
After that, create a copy of the register-portfolio.php, rename it to something else, register-team.php file for example, move it to the child theme folder and do your own modifications. You can then load the modified file using this code in the functions.php file.
require_once( 'path/to/register-team.php' );
Best regards,
Ismael
Hi ismael, thank you! In the first part, you said to add a code to the functions.php file. Since it’s being added directly to the parent file, would an update overwrite this?