Change portfolio in address and projects in breadcrumb

This topic has 6 replies, 2 voices, and was last updated 10 years ago ago by Eva Kemp

  • Avatar: darren
    darren
    Participant
    October 23, 2014 at 11:56

    Hi,

    In my menu I have changed the portfolio link to Client gallery, when I goto the page in the address bar it shows as: /clientgallery/ … which is fine.

    However if I then click on a ‘more details’ link the address changes to:
    /portfolio/etiam-fringilla-turpis-odio/

    and in the breadcrumb it says:

    Home / Projects / Etiam fringilla turpis odio

    I want them both to say:

    /clientgallery/etiam-fringilla-turpis-odio/
    Home / Client Gallery / Etiam fringilla turpis odio

    Thanks

    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    October 23, 2014 at 13:54

    Hello,

    If you want to change portfolio slug you need to edit wp-content/themes/royal/framework/portfolio.php , find the line 28:
    $args = array(
    and change the following code (line 41) :
    'rewrite' => array('slug' => 'portfolio')
    Replace “portfolio” with your text.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: darren
    darren
    Participant
    October 23, 2014 at 14:17

    Thanks, but when I did that each of the ‘more details’ links produce a 404..I also need to change the breadcrumb.

    $args = array(
    ‘labels’ => $labels,
    ‘public’ => true,
    ‘publicly_queryable’ => true,
    ‘show_ui’ => true,
    ‘show_in_menu’ => true,
    ‘query_var’ => true,
    ‘rewrite’ => true,
    ‘capability_type’ => ‘post’,
    ‘has_archive’ => false,
    ‘hierarchical’ => false,
    ‘menu_position’ => null,
    ‘supports’ => array(‘title’,’editor’,’author’,’thumbnail’,’excerpt’,’comments’),
    ‘rewrite’ => array(‘slug’ => ‘clientgallery’)
    );

    Site in Private content…

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    October 23, 2014 at 16:06

    Hello,

    You need also resave Permalinks settings.
    Please try this.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: darren
    darren
    Participant
    October 23, 2014 at 16:19

    Thanks that fixed the 404s, how do I change/rename the breadcrumb from ‘Projects’ please?

    Avatar: Eva
    Eva Kemp
    Support staff
    October 23, 2014 at 21:16

    Hello,

    You can change Projects word in wp-content/themes/royal/framework/portfolio.php as well. Edit line 13 'name' => _x('Projects', 'post type general name'), and replace “Projects” with your text.

    Thank you.
    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘Change portfolio in address and projects in breadcrumb’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.