Skip to:
Content
Pages
Categories
Search
Top
Bottom

how do I remove first two parts of breadcrumb?


  • boto10
    Participant

    @boto10

    Hi again.
    Does anyone know which file to edit the breadcrumb so that I could remove the firest two parts showing in thsi screenshot http://i.imgur.com/b1Mee.jpg ?
    Reason I want it out is because the link home goes to my index php which is just my option to remove but the forum link it links to the main forum page that I cannot add widgets or modules into. Its shows the complete wide view and no modules could be put (too empty).
    Can someone guide me?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • function mycustom_breadcrumb_options() {
    	// Home - default = true
    	$args['include_home']    = false;
    	// Forum root - default = true
    	$args['include_root']    = false;
    	// Current - default = true
    	$args['include_current'] = true;
    
    	return $args;
    }
    
    add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options' );

    I think the above will do what you are after… Just add it to your themes functions.php


    boto10
    Participant

    @boto10

    Many thanks. I just copies the whole thing and paste it then wallah. Getting to like WordPress even more.
    Thanks.


    hongthai2791nd
    Participant

    @hongthai2791nd

    Thank moderator,I also have the same problem
    and has been resolved


    ps3hero
    Participant

    @ps3hero

    awesome! THX Stephen!


    halydris
    Participant

    @halydris

    Also works around my issue with Customizr theme, thanks!


    AntonyC
    Participant

    @antonyc

    Hi, is it possible to replace the forum root (in your above example) with a url of my choice?
    Cheers,
    Antony


    Stephen Edgar
    Moderator

    @netweb

    @antonyc You can change the ‘Forum Root’ in bbPress settings

    See the docs here for the hows and where http://codex.bbpress.org/forum-settings/#forum-root-slug

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.