Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #979478
    Heath
    Participant

    I am using Icon theme… here is my temp domain: http://f24.411.myftpupload.com/

    I would like to enable breadcrumbs on my home page so I can have some company-specific words above the slider.

    Thank you ahead of time!

    #979731
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    You can activate and deactivate the breadcrumbs under Appearance > Customize > Header > Miscellaneous > Breadcrumbs .

    Thanks.

    #982771
    Heath
    Participant

    I do have breadcrumbs enabled, but they do not show on the Home page, only all other pages. How can I configure them to show for the home page?

    Thanks,

    Heath

    #982880
    Rahul
    Moderator

    Hi Heath,

    Yes, breadcrumbs are always disabled on the home page. You can change this by overriding the breadcrumbs template in a child theme.

    The file you want to change is: x/framework/views/integrity/_breadcrumbs.php

    Find this line:
    <?php if ( ! is_front_page() ) : ?>

    Change it to:
    <?php if (true) : ?>

    This will allow breadcrumbs to be displayed on the home page as well.

    Thanks

    #990724
    Heath
    Participant

    Unfortunately that doesn’t appear to be showing the results I want.
    Here’s what I did:

    1. downloaded _breadcrumbs.php from the directory you gave.
    2. Edited the line with the exact syntax you gave.
    3. copied the new file to the corresponding x-child directory

    Breadcrumbs is also enabled in Customizer. Let me know if I’m issing something!

    Thanks!

    #990881
    Christopher
    Moderator

    Hi there,

    Please update existing code with following :

    <?php
    
    // =============================================================================
    // VIEWS/ICON/_BREADCRUMBS.PHP
    // -----------------------------------------------------------------------------
    // Breadcrumb output for Icon.
    // =============================================================================
    
    ?>
    
    <?php if (  is_front_page() ) : ?>
      <?php if ( x_get_option( 'x_breadcrumb_display' ) == '1' ) : ?>
    
        <div class="x-breadcrumb-wrap">
          <div class="x-container max width">
    
            <?php x_breadcrumbs(); ?>
    
            <?php if ( is_single() || x_is_portfolio_item() ) : ?>
              <?php x_entry_navigation(); ?>
            <?php endif; ?>
    
          </div>
        </div>
    
      <?php endif; ?>
    <?php endif; ?>

    Hope it helps.

    #991538
    Heath
    Participant

    Unfortunately it’s still not working. I copied the code exactly. Here’s a screenshot in an incognito browser: https://i.imgur.com/Si8XYzI.jpg

    #991838
    Rue Nel
    Moderator

    Hello There,

    Please update the code and use this instead:

    <?php
    
    // =============================================================================
    // VIEWS/ICON/_BREADCRUMBS.PHP
    // -----------------------------------------------------------------------------
    // Breadcrumb output for Icon.
    // =============================================================================
    
    ?>
    
    <?php if ( x_get_option( 'x_breadcrumb_display' ) == '1' ) : ?>
    
    <div class="x-breadcrumb-wrap">
      <div class="x-container max width">
    
        <?php x_breadcrumbs(); ?>
    
        <?php if ( is_single() || x_is_portfolio_item() ) : ?>
          <?php x_entry_navigation(); ?>
        <?php endif; ?>
    
      </div>
    </div>
    
    <?php endif; ?>
    

    And please make sure that the breadcrumb is enabled in the customizer, Appearance > Customize > Header > Miscellaneous.

    #1002056
    Heath
    Participant

    Well it wasn’t working… the reason was it was in the Integrity directory and not the Icon directory! Oops! No worries, though, I found the mistake just now after sleeping on it a few nights. Thanks for the code, though!

    #1002219
    Rahul
    Moderator

    You’re welcome!

    #1013788
    Heath
    Participant

    Thanks for the help so far. I would like to add one additional element to this. I want to add a phone number at the far RIGHT of the breadcrumbs section. See here in the screenshot: http://imgur.com/0xC5GSh

    Thanks. How do I do this?

    THank you for any insight!

    #1014051
    Christopher
    Moderator

    Hi there,

    Please update your code to :

    <?php
    
    // =============================================================================
    // VIEWS/ICON/_BREADCRUMBS.PHP
    // -----------------------------------------------------------------------------
    // Breadcrumb output for Icon.
    // =============================================================================
    
    ?>
    
    <?php if ( x_get_option( 'x_breadcrumb_display' ) == '1' ) : ?>
    
    <div class="x-breadcrumb-wrap">
      <div class="x-container max width">
    
        <?php x_breadcrumbs(); ?>
    <div class="phone-number">12345679</div>
        <?php if ( is_single() || x_is_portfolio_item() ) : ?>
          <?php x_entry_navigation(); ?>
        <?php endif; ?>
    
      </div>
    </div>
    
    <?php endif; ?>

    Please add following code in Customize -> Custom -> CSS :

    .phone-number{
    float:right;
    }

    Hope it helps.

  • <script> jQuery(function($){ $("#no-reply-979478 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>