[Support request] Gap below navigation bar

Home Forums Support [Support request] Gap below navigation bar

Home Forums Support Gap below navigation bar

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #411595
    Matthew

    On the home page of my site (https://www.stonecrestleadership.com?bypass=prototype) there’s a full-width gap of white space between the navigation bar and the page content. I assume this gap is being caused by the breadcrumbs container, but on only the home page I DON’T want the breadcrumbs OR their container to show at all. On all OTHER pages it/they should.

    How do I accomplish what I’m after here?

    #411628
    Leo
    Staff
    Customer Support

    Hi there,

    Are you adding it using hooks?

    #412000
    Leo
    Staff
    Customer Support

    Then you can do this in hook to include the home page:

    <?php if ( ! is_front_page() ) : ?>
        code here
    <?php endif; ?>

    Please reply on here for communication.

    Thanks.

    #413168
    Matthew

    I’m doing that already, but it’s not working; here’s my code:

    <div class="breadcrumbs">
    <?php if ( function_exists( 'bcn_display' ) && ! is_front_page() ) {
        bcn_display();
    } ?>
    </div>

    Please advise.

    #413185
    Leo
    Staff
    Customer Support

    Try this and make sure execute PHP is checked:

    <?php if ( function_exists( 'bcn_display' ) && ! is_front_page() ) : ?>
        <div class="breadcrumbs">
            bcn_display();
        </div>
    <?php endif; ?>
    #413253
    Matthew

    That totally fixed it; thanks!

    #413254
    Leo
    Staff
    Customer Support

    No problem!

    #413256
    Matthew

    Dang it! I spoke too soon… The code tweak got rid of the white space on the home page, but now on all other pages it shows the text “bcn_display();” instead of working breadcrumb functionality.

    #413337
    Leo
    Staff
    Customer Support

    Hmm try this:

    <?php if ( function_exists( 'bcn_display' ) && ! is_front_page() ) : ?>
        <div class="breadcrumbs">
            <?php bcn_display(); ?>
        </div>
    <?php endif; ?>
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.