>> Check out our new theme: Benous - Elementor MultiPurpose WordPress Theme <<
If you can't submit the support ticket here, please use the contact form at THEMELOGI profile page on ThemeForest

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.

#1503
Danny
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