Tagged: x
-
AuthorPosts
-
May 6, 2016 at 7:02 pm #979478
HeathParticipantI 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!
May 6, 2016 at 10:43 pm #979731
Prasant RaiModeratorHello There,
Thanks for writing in!
You can activate and deactivate the breadcrumbs under Appearance > Customize > Header > Miscellaneous > Breadcrumbs .
Thanks.
May 9, 2016 at 1:44 pm #982771
HeathParticipantI 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
May 9, 2016 at 2:46 pm #982880
RahulModeratorHi 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
May 13, 2016 at 9:07 pm #990724
HeathParticipantUnfortunately 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 directoryBreadcrumbs is also enabled in Customizer. Let me know if I’m issing something!
Thanks!
May 14, 2016 at 12:27 am #990881
ChristopherModeratorHi 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.
May 14, 2016 at 2:51 pm #991538
HeathParticipantUnfortunately it’s still not working. I copied the code exactly. Here’s a screenshot in an incognito browser: https://i.imgur.com/Si8XYzI.jpg
May 14, 2016 at 11:33 pm #991838
Rue NelModeratorHello 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.
May 20, 2016 at 3:20 pm #1002056
HeathParticipantWell 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!
May 20, 2016 at 6:04 pm #1002219
RahulModeratorYou’re welcome!
May 27, 2016 at 7:53 pm #1013788
HeathParticipantThanks 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!
May 28, 2016 at 1:00 am #1014051
ChristopherModeratorHi 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-979478 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
