• Resolved eddiebouncer

    (@eddiebouncer)


    Hi there,

    First of thanks for a nice plugin! Now i’m facing this issue with my Portfolio-pages.
    For the breadcrumbs i’d like to have ‘Home > Cases > Case x’, yet i get ‘Home > Portfolio > Case x’. Imo the reason is i’m creating these cases as post-type ‘portfolio’, as i’m using the Avada theme.

    Is there a way to add the static text ‘cases’ in the ‘Breadcrumb NavXT’-settings’ Template Portfolio, so i can kick out the ‘portfolio’ and replace it with ‘cases’?

    Peace, Ed’

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter eddiebouncer

    (@eddiebouncer)

    Hmmz,

    i replaced the %title% with ‘cases’ which seems to work for the portfolio-item pages. Now it still shows on the portfolio-overview page. Is there a way to replace it similar like:

    add_filter('bcn_breadcrumb_title', function($title, $type, $id) {
    	if ($type[0] === 'home') {
    		$title = get_the_title(get_option('page_on_front'));
    	}
    	return $title;
    }, 42, 3);

    Cheers, Ed’

    • This reply was modified 8 years, 2 months ago by eddiebouncer. Reason: refined answer
    Plugin Author John Havlik

    (@mtekk)

    To keep from having to manually change ‘portfolio’ to ‘cases’ in several places, you should either create your own Custom Post Type, or use a filter to change the post type label to what you want. I suggest looking into writing a hook into the register_post_type_args filter and modifying the label and labels to what you want.

    Otherwise, yes, you could use bcn_breadcrumb_title, but it only affects the breadcrumb title and you will have other areas where ‘Portfolio’ will show up where you want ‘Cases’ that you will have to fix.

    Thread Starter eddiebouncer

    (@eddiebouncer)

    Hi John,

    thanks for the fast reply and explanation. I’ve chosen to set the portfolio-slug as ‘case’ and use static text in the portfolio breadcrumbs trail, which turns out nicely.

    Cheers, Ed’

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change NavXT’s portfolio template’ is closed to new replies.