• 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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter marcods

    (@marcods)

    .. 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?

    Why would a breadcrumb be useless on a contact page?

    Dupe.

    Thread Starter marcods

    (@marcods)

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

    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).

    https://www.ads-software.com/support/topic/247222

    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.

    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…

    : )

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Yoast Breadcrumbs] Remove from specific pages..’ is closed to new replies.