Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1216541

    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!

    #1218810

    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

    #1218818

    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?

    #1220380

    Hi,

    Yes, an update will overwrite it, which is why we recommended adding it in the child theme. You can do that by creating a copy of the register-portfolio.php as instructed above.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.