[Support request] How to disbale breadcumb in specific page/post

Home Forums Support [Support request] How to disbale breadcumb in specific page/post

Home Forums Support How to disbale breadcumb in specific page/post

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #568666
    Huy

    Hi.
    At the moment I am enabling breadcrumb in Post type only

    But If I want to disable breadcrumb is a specific post without using CSS, actually I want it not to be rendered
    What can I do

    Also, my website is https://brobbq.com

    #568912
    Leo
    Staff
    Customer Support
    #570705
    Huy

    Thank you, Leo
    Can you check for me this code is right or not, please

    <?php if ( is_single() && ! is_single(3479) ) : ?>
         <div class="page-header grid-container grid-parent">
    <?php if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb('<p id="breadcrumbs">','</p>');
    } ?>
    </div>
    <?php endif; ?>
    #570731
    Leo
    Staff
    Customer Support

    Try this:

    <?php if ( function_exists('yoast_breadcrumb') && is_single() && ! is_single( '3479' ) ) : ?>
        <?php yoast_breadcrumb( '<p id=”breadcrumbs”>','</p>' ); ?>
    <?php endif; ?>

    Any reason you need this part? <div class="page-header grid-container grid-parent">

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.