Breadcrumbs Missing

Hi there,

I have breadcrumbs enabled, but they are not appearing on the site. How can I fix this, am I missing a setting?

Hello There,

Thanks for asking. :slight_smile:

Can you please confirm Breadcrumbs is enabled under X > Launch > Options > Header > Miscellaneous as I don’t see Breadcrumbs related code in source code of website.

Thanks.

Hi, yes they are enabled under options. Will send login info

Hey,

I have noticed this issue: http://prntscr.com/gbxgg6 and you can fix it disabling all the plugins and finding some plugin conflict. Check if this is causing the breadcrumb problem.

Hi there,

I have tried the following:

-Disabling child theme.
-Deactivating all plugins.
-I fixed the jQuery error that you sent screenshot of.

None of these have fixed the breadcrumb issue

Hi,

Please note that breadcrumbs is not available for No Container | Header, Footer Template.

To enable it, create file _landmark-header.php in wp-content/themes/x-child/framework/legacy/cranium/headers/views/renew (you need to create these directories) and add the code below into that file.

<?php

// =============================================================================
// VIEWS/RENEW/_LANDMARK-HEADER.PHP
// -----------------------------------------------------------------------------
// Handles content output of large headers for key pages such as the blog or
// search results.
// =============================================================================

$disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true );
$breadcrumbs        = x_get_option( 'x_breadcrumb_display' );

?>

<?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) &&  ! x_is_blank( 5 ) ) : ?>
  <?php if ( is_page() && $disable_page_title == 'on' ) : ?>

  <?php else : ?>

    <header class="x-header-landmark">
      <div class="x-container max width">
        <div class="x-landmark-breadcrumbs-wrap">
          <div class="x-landmark">

          <?php if ( x_is_shop() || x_is_product() ) : ?>

            <h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_shop_title' ); ?></span></h1>

          <?php elseif ( x_is_bbpress() ) : ?>

            <h1 class="h-landmark"><span><?php echo get_the_title(); ?></span></h1>

          <?php elseif ( x_is_buddypress() ) : ?>
            <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>

              <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1>

            <?php endif; ?>
          <?php elseif ( is_page() ) : ?>

            <h1 class="h-landmark entry-title"><span><?php the_title(); ?></span></h1>

          <?php elseif ( is_home() || is_single() ) : ?>
            <?php if ( x_is_portfolio_item() ) : ?>

              <h1 class="h-landmark"><span><?php echo x_get_parent_portfolio_title(); ?></span></h1>

            <?php else : ?>

              <h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></h1>

            <?php endif; ?>
          <?php elseif ( is_search() ) : ?>

            <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>

          <?php elseif ( is_category() || x_is_portfolio_category() || x_is_product_category() ) : ?>

            <?php

            $meta  = x_get_taxonomy_meta();
            $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Category Archive', '__x__' );

            ?>

            <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>

          <?php elseif ( is_tag() || x_is_portfolio_tag() || x_is_product_tag() ) : ?>

            <?php

            $meta  = x_get_taxonomy_meta();
            $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Tag Archive', '__x__' );

            ?>

            <h1 class="h-landmark"><span><?php echo $title ?></span></h1>

          <?php elseif ( is_404() ) : ?>

            <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1>

          <?php elseif ( is_year() ) : ?>

            <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1>

          <?php elseif ( is_month() ) : ?>

            <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1>

          <?php elseif ( is_day() ) : ?>

            <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1>

          <?php elseif ( x_is_portfolio() ) : ?>

            <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>

          <?php endif; ?>

          </div>

          <?php if ( $breadcrumbs == '1' ) : ?>
            <?php if ( ! is_front_page() && ! x_is_portfolio() ) : ?>
              <div class="x-breadcrumbs-wrap">
                <?php x_breadcrumbs(); ?>
              </div>
            <?php endif; ?>
          <?php endif; ?>

          <?php if ( x_is_portfolio() ) : ?>
            <div class="x-breadcrumbs-wrap">
              <?php x_portfolio_filters(); ?>
            </div>
          <?php endif; ?>

        </div>
      </div>
    </header>

  <?php endif; ?>
<?php endif; ?>

Hope that helps

Thank you very much. I do have a question however.

I currently have this code in my _landmark-header.php file:

<?php // ============================================================================= // VIEWS/RENEW/_LANDMARK-HEADER.PHP // ----------------------------------------------------------------------------- // Handles content output of large headers for key pages such as the blog or // search results. // ============================================================================= $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true ); $breadcrumbs = x_get_option( 'x_breadcrumb_display' ); ?> <?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) && ! x_is_blank( 4 ) && ! x_is_blank( 5 ) ) : ?> <?php if ( is_page() && $disable_page_title == 'on' ) : ?> <?php else : ?>
<header class="x-header-landmark">
  <div class="x-container max width">
    <div class="x-landmark-breadcrumbs-wrap">
      <div class="x-landmark">

      <?php if ( x_is_shop() || x_is_product() ) : ?>

        <p class="h-landmark"><span><?php echo x_get_option( 'x_renew_shop_title' ); ?></span></p>

      <?php elseif ( x_is_bbpress() ) : ?>

        <p class="h-landmark"><span><?php echo get_the_title(); ?></span></p>

      <?php elseif ( x_is_buddypress() ) : ?>
        <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>

          <p class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></p>

        <?php endif; ?>
      <?php elseif ( is_page() ) : ?>

        <p class="h-landmark entry-title"><span><?php the_title(); ?></span></p>
     

      <?php elseif ( is_home() || is_single() ) : ?>
        <?php if ( x_is_portfolio_item() ) : ?>

          <p class="h-landmark"><span><?php echo x_get_parent_portfolio_title(); ?></span></p>

        <?php else : ?>

          <p class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></p>
          
        <?php endif; ?>
      <?php elseif ( is_search() ) : ?>

        <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>

      <?php elseif ( is_category() || x_is_portfolio_category() || x_is_product_category() ) : ?>

        <?php

        $meta  = x_get_taxonomy_meta();
        $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Category Archive', '__x__' );

        ?>

        <p class="h-landmark"><span><?php echo $title; ?></span></p>

      <?php elseif ( is_tag() || x_is_portfolio_tag() || x_is_product_tag() ) : ?>

        <?php

        $meta  = x_get_taxonomy_meta();
        $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Tag Archive', '__x__' );

        ?>

        <p class="h-landmark"><span><?php echo $title ?></span></p>

      <?php elseif ( is_404() ) : ?>

        <p class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></p>

      <?php elseif ( is_year() ) : ?>

        <p class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></p>

      <?php elseif ( is_month() ) : ?>

        <p class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></p>

      <?php elseif ( is_day() ) : ?>

        <p class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></p>

      <?php elseif ( x_is_portfolio() ) : ?>

        <p class="h-landmark"><span><?php the_title(); ?></span></p>

      <?php endif; ?>

      </div>

      <?php if ( $breadcrumbs == '1' ) : ?>
        <?php if ( ! is_front_page() && ! x_is_portfolio() ) : ?>
          <div class="x-breadcrumbs-wrap">
            <?php x_breadcrumbs(); ?>
          </div>
        <?php endif; ?>
      <?php endif; ?>

      <?php if ( x_is_portfolio() ) : ?>
        <div class="x-breadcrumbs-wrap">
          <?php x_portfolio_filters(); ?>
        </div>
      <?php endif; ?>

    </div>
  </div>
</header>
<?php endif; ?> <?php endif; ?>

This controls the custom blog headers – how can I use those codes without them affecting one another? When I added the code you sent it worked, but combined my blog customizations with it

Thank you

Hello There,

In your _landmark-header.php file, please remove this line:
<?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) && ! x_is_blank( 4 ) && ! x_is_blank( 5 ) ) : ?>

And replace it with this instead:
<?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) && ! x_is_blank( 5 ) ) : ?>

Please let us know if this works out for you.

Hi there,

Your original code works for pages, but it adds an extra section of breadcrumbs on my blog page and post pages. I do not need the additional breadcrumbs added to everything, only single pages. Could you please send me a fix to incorporate your code with the code I already have in place? Here is my blog page: https://www.stiganmedia.com/blog/

Here is my current code (not including any of the codes you have sent):

<?php // ============================================================================= // VIEWS/RENEW/_LANDMARK-HEADER.PHP // ----------------------------------------------------------------------------- // Handles content output of large headers for key pages such as the blog or // search results. // ============================================================================= $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true ); $breadcrumbs = x_get_option( 'x_breadcrumb_display' ); ?> <?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) && ! x_is_blank( 4 ) && ! x_is_blank( 5 ) ) : ?> <?php if ( is_page() && $disable_page_title == 'on' ) : ?> <?php else : ?>
<header class="x-header-landmark">
  <div class="x-container max width">
    <div class="x-landmark-breadcrumbs-wrap">
      <div class="x-landmark">

      <?php if ( x_is_shop() || x_is_product() ) : ?>

        <p class="h-landmark"><span><?php echo x_get_option( 'x_renew_shop_title' ); ?></span></p>

      <?php elseif ( x_is_bbpress() ) : ?>

        <p class="h-landmark"><span><?php echo get_the_title(); ?></span></p>

      <?php elseif ( x_is_buddypress() ) : ?>
        <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>

          <p class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></p>

        <?php endif; ?>
      <?php elseif ( is_page() ) : ?>

        <p class="h-landmark entry-title"><span><?php the_title(); ?></span></p>
     

      <?php elseif ( is_home() || is_single() ) : ?>
        <?php if ( x_is_portfolio_item() ) : ?>

          <p class="h-landmark"><span><?php echo x_get_parent_portfolio_title(); ?></span></p>

        <?php else : ?>

          <p class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></p>
          
        <?php endif; ?>
      <?php elseif ( is_search() ) : ?>

        <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>

      <?php elseif ( is_category() || x_is_portfolio_category() || x_is_product_category() ) : ?>

        <?php

        $meta  = x_get_taxonomy_meta();
        $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Category Archive', '__x__' );

        ?>

        <p class="h-landmark"><span><?php echo $title; ?></span></p>

      <?php elseif ( is_tag() || x_is_portfolio_tag() || x_is_product_tag() ) : ?>

        <?php

        $meta  = x_get_taxonomy_meta();
        $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Tag Archive', '__x__' );

        ?>

        <p class="h-landmark"><span><?php echo $title ?></span></p>

      <?php elseif ( is_404() ) : ?>

        <p class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></p>

      <?php elseif ( is_year() ) : ?>

        <p class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></p>

      <?php elseif ( is_month() ) : ?>

        <p class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></p>

      <?php elseif ( is_day() ) : ?>

        <p class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></p>

      <?php elseif ( x_is_portfolio() ) : ?>

        <p class="h-landmark"><span><?php the_title(); ?></span></p>

      <?php endif; ?>

      </div>

      <?php if ( $breadcrumbs == '1' ) : ?>
        <?php if ( ! is_front_page() && ! x_is_portfolio() ) : ?>
          <div class="x-breadcrumbs-wrap">
            <?php x_breadcrumbs(); ?>
          </div>
        <?php endif; ?>
      <?php endif; ?>

      <?php if ( x_is_portfolio() ) : ?>
        <div class="x-breadcrumbs-wrap">
          <?php x_portfolio_filters(); ?>
        </div>
      <?php endif; ?>

    </div>
  </div>
</header>
<?php endif; ?> <?php endif; ?>

Hi there,

I tried it but I’m not sure what extra spaces you’re referring. Would you mind providing some screenshots? Or maybe the landmark is shorter (no padding)?

Thanks!