This topic has 6 replies, 2 voices, and was last updated 10 years ago ago by Eva Kemp
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
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.
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…
Hello,
You need also resave Permalinks settings.
Please try this.
Thank you.
Regards,
Eva Kemp.
Thanks that fixed the 404s, how do I change/rename the breadcrumb from ‘Projects’ please?
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.
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