Our support team is on holiday from January 1st to 7th. Responses may be delayed, but we'll be back on January 8th. Happy Holidays!

Okay
  Public Ticket #3816953
Portfolio Page / Slug
Open

Comments

  • deadelia started the conversation

    Hi,

    Is there a way to change the slug of the portfolio link so that it would say project instead of portfolio?

    https://neuronthemes.com/archzilla/portfolio/soft-minimal-apartment/

    Also, how to disable theĀ portfolio archive page entirely? I have no way of editing the layout.

    Thank you.

  •  965
    Neuron replied

    Hi,

    1) You can change the portfolio slug by adding the following code to the functions.php file of the Archzilla/ Archzilla child theme.

    function change_portfolio_post_type_slug() {    if (post_type_exists('portfolio')) {        $post_type = get_post_type_object('portfolio');        $post_type->rewrite['slug'] = 'project';        $post_type->rewrite['with_front'] = false;        register_post_type('portfolio', $post_type);    }
    }
    add_action('init', 'change_portfolio_post_type_slug', 20);

    2) Please watch the following video tutorial on how to create the archive template and assign it to the portfolio page.

    Video Tutorial.

    Or, you can disable the archive for the portfolio by going to Dashboard > Neuron > Settings > Portfolio Archive

    Feel free to ask for anything you need.

    Kind Regards