Site logo

Archived topic

Breadcrumb to not display for certain page

3 replies · Started by Matthew on August 9, 2021

Viewing posts 1–4 of 4

I've got a generate_after_content hook to display Yoast breadcrumbs

if ( function_exists('yoast_breadcrumb') ) {
  yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
}

Is there a way to prevent from diplay on certain page i.e. my contact form thank you page.
Is this what the 'Exclusion Rule' should be used for from 'Display Rules' in the hook?

Or do I ask Yoast..

Hi Matthew,

Is this what the ‘Exclusion Rule’ should be used for from ‘Display Rules’ in the hook?

Yes that's it.

Display rule Exclusion prevents GP Elements from running on the specified page. So basically, if you want the breadcrumbs to NOT display on a specific page like the "Thank you" page, you'll have to include it on the Exclusion rule.

Sorted now, thanks

Nice one. No problem. :D

This archived topic is closed to new replies.