[SOLVED] Breadcrumbs in Page Menu Bar not working ... no matter what ... but has for
I raised this issue earlier when using Yoast's breadcrumb plugin -- http://forum.bytesforall.com/showthr...ighlight=yoast. The original source for that code was from: http://forum.bytesforall.com/showthr...ght=breadcrumb
Part of the solution was to switch to Breadcrumb NavXT in an effort to eliminate having the breadcrumb trail go vertical, instead of horizontal. But, switching hasn't worked ... the images attached to the original thread are still valid. What I've done: 0. Deactivated and deleted Yoast's breadcrumb plugin. Installed and activated Breadcrumb NavXT Administration Interface version and left it at its default settings. 1. Here is the code that I inserted into bfa_header_config.php, starting at line 21 -- this was code suggested to from that earlier thread: Code:
if ($bfa_ata['levels_page_menu_bar'] == "") { Shedfed was kind enough to send me the CSS Insert that adjusted the line for him so that it displayed properly on his Page Menu Bar -- of particular importance is the "display: inline" instead of the Page Menu Bar's default of "display: block" Code:
#breadcrumb {float: right; padding: 4px 5px 4px 5px; margin-top: 0px; font-size: 75%; margin-right: 5px; background-color:#FFFDDD; color: #FF000;} The end result is ... no change. I downloaded Firebug and started "poking around" and it appears as my CSS Insert is being completely ignored. I can see the "<li class="breadcrumb"> under: <ul id="rmenu2" class "clearfix rmenu-hor rmenu"> so the class is being recognized. But the colors, for one thing, that I added above don't show up during "inspection" at all and the trail continues to be horizontal. I cleared the cache, several times, even bounced IIS. And. I went back through changes I'd made in style.css to add underline to the page and category menus and disabled them ... no change. What could be causing my CSS Insert to be completely ignored? Since the class was declared in the bfa_header_config logic, the above insert seems like it should work ... and is working for Shedfed. Thank you in advance for any help. :confused: |
Don
You need to change the li class="breadcrumb" to li id="breadcrumb" in your change to bfa_header_config.php as the CSS selector # is for id's. Sorry; that's my fault. I must have changed over from a class at some stage and for some (no doubt obscure) reason. My bit of the bfa_header_config.php file looks like this these days - note the li id bit. The CSS should then get selected properly. Apologies for this. PHP Code:
|
Thank you, thank you, thank you, Shedhed! It works! Beautifully.
Major kudos for following up. You are a true Atahualpa Trooper. :) As a recap so other folks don't have to slog through pages of replies and posts, here is what worked with 3.3.3 and Breadcrumb NavXT 3.2.1: 1. Modify bfa_header_config.php as below. The original code looks like this (starting at line 21): Code:
if ($bfa_ata['levels_page_menu_bar'] == "") { Code:
if ($bfa_ata['levels_page_menu_bar'] == "") { Code:
#breadcrumb {float: right; padding: 4px 5px 4px 5px; margin-top: 0px; font-size: 85%; margin-right: 5px; background-color:#FFFDDD; color: #003366;} P.S. I kind of suspect that setting up the CSS Insert somewhat like this for the Yoast Breadcrumb plugin would have caused it to work as well (ref: http://forum.bytesforall.com/showthr...ighlight=yoast) but now that I've played with Breadcrumb NavXT it seems to have a lot more flexibility. |
All times are GMT -6. The time now is 05:40 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.