Tickets › Tickets › Wanium › Portfolio Title and Portfolio URL Slug not getting updated in breadcrumb. › Reply To: Portfolio Title and Portfolio URL Slug not getting updated in breadcrumb.
March 23, 2017 at 3:15 am
#1503
Supporter
Hi pictureprefect,
Thanks for the bug report!
I’ve just fixed this issue for you, I’ve modified the code below in “helpers.php” file from “inc” folder (around line 498):
if( 'portfolio' == $post_type ) {
$home .= '<li class="active"><a href="' . esc_url( home_url( "/portfolio/" ) ) . '">' . esc_html__( 'Portfolio', 'wanium' ) . '</a></li>';
}
.. and change it into this:
$portfolio_slug = get_option( 'tlg_framework_portfolio_slug', 'portfolio' );
if( 'portfolio' == $post_type ) {
if( 'portfolio' != $portfolio_slug ) {
$home .= '<li class="active"><a href="' . esc_url( home_url( "/".$portfolio_slug."/" ) ) . '">' . ucwords(strtolower($portfolio_slug)) . '</a></li>';
} else {
$home .= '<li class="active"><a href="' . esc_url( home_url( "/".$portfolio_slug."/" ) ) . '">' . esc_html__( 'Portfolio', 'wanium' ) . '</a></li>';
}
}
We’ll add this in next update too.
Best regards,
Danny
