WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Yoast Breadcrumbs] Remove from specific pages.. (8 posts)

  1. marcods
    Member
    Posted 5 years ago #

    hi, is there a trick to remove the breadcrumbs from specific pages? i mean i have some pages nested in categories where it's useful, and others like "contacts" where it's useless... any idea?

    thanks regards

    marco

  2. marcods
    Member
    Posted 5 years ago #

    .. i guess it's not possible.. a way to come around could be save as pages and not posts those i don't want the breadcrumb to appear on.
    but could it be of any use?

  3. Joost de Valk
    Member
    Posted 5 years ago #

    Why would a breadcrumb be useless on a contact page?

  4. Joost de Valk
    Member
    Posted 5 years ago #

    Dupe.

  5. marcods
    Member
    Posted 5 years ago #

    cause i already have page titles made in flash inside those pages..

  6. imprintdesign
    Member
    Posted 5 years ago #

    Take a look at this article... I used this to specifically remove the breadcrumbs from my home page and would imagine it will work for any page (where you would substitute "home" or "front_page" with any page name you like).

    http://wordpress.org/support/topic/247222

  7. grumbirky
    Member
    Posted 4 years ago #

    Why not just hide it with CSS, saving you headaches with the PHP?
    I'm using Thematic, which puts lots of CSS classes in the <body> tag, including slug name, post id, and lots more. I can then use something like this to hide it:
    .slugname .yoast {display:none;}

    Just a thought.

  8. lovduv
    Member
    Posted 4 years ago #

    Just in case anyone is looking for this fix. The code below will remove Yoast Breadcrumbs from the page specified:

    <?php if (is_page(your-page-slug)) {
    	echo '';
    } else {
    	if ( function_exists('yoast_breadcrumb') ) {
    		yoast_breadcrumb('','');
    	}
    } ?>

    ...and this one will remove it from your home page and a page you specify, which is what I needed ; )

    <?php if (is_home()) {
    	echo '';
    } else
    	if (is_page(your-page-slug)) {
    	echo '';
            }
    
    else {
    	if ( function_exists('yoast_breadcrumb') ) {
    		yoast_breadcrumb('','');
    	}
    } ?>

    Just replace your-page-slug with the slug for the page you DO NOT want the breadcrumbs to show up on...

    : )

Topic Closed

This topic has been closed to new replies.

About this Topic