Help! With Breadcrumb NavXT & syntax error that has my site shut down.
Ok. I'm trying to put breadcrumbs on my website along with the dropdown menu.
I installed and activated Breadcrumb NavXT 3.7.0. It states I have to put the follow code into the header. HTML Code:
<div class='breadcrumbs&'> HTML Code:
// Empty setting "levels" same as 0 Parse error: syntax error, unexpected '&' in /wordpress/wp-content/themes/atahualpa361/functions/bfa_header_config.php on line 65 I took the brumbcrumb code out and tried to update the file but I still get the syntax error. My site is down. 1. Did I select the wrong area in the bfa_header_config.php to put the code? 2. Is using the theme editor the wrong tool to use to edit code like this? 3. If the arrangement is %image %pages %bar1 %bar2, is it possible to have the breadcrumbs be located in the bar2? BTW, I got the site back up by uploading a new bfa_header_config.php file. |
I'd have to see the whole module with the edits to determine what might be wrong.
put the code back in and then copy the entire module to a text file. ZIp the file and attach it to a reply using the paper clip icon |
I've attached a zip file with the breadcrumb code where I put it. After reviewing it a bit more it seems I might have put it in the wrong place.
Where is the right place to put the code? Why isn't there a better way of putting breadcrumbs into the 'code' or the site in general? As a theme wouldn't it be better to include breadcrumbs as an option? With the ability to put it where you want them like you can with the header image, main menu, etc. Just asking and suggesting. |
1 Attachment(s)
I guess I forget to hit the right button to upload the zip file.
|
The code you have has '<' instead of '<'
'"' instead of a single quote and '>' instead of '>' that is why it fails |
1 Attachment(s)
I greatly appreciate the help guys.
1. I just copy and pasted the code from Breadcrumbs NavXT's website. If the code is bad, that is on them. 2. I wish there were a set of instructions/documentation that stated where all the "plugins" like Breadcrumbs are supposed to go. It really is hit or miss with the forum questions as to whether or not you find the right instructions. So if I have this correct. Don't use Breadcrumbs code, put STB's code in the area where is at on the attached image. |
STB and Juggledad...thanks for the help. The breadcrumbs show up but now have to figure out how to stylize them.
|
I found this CSS Insert code.
#breadcrumb {float: right; padding: 4px 5px 4px 5px; margin-top: 0px; font-size: 85%; margin-right: 5px; background-color:#FFFDDD; color: #003366;} #breadcrumb a {display: inline; border: none; padding: 0; text-transform: none;} #breadcrumb a:hover {color: #000000; background-color: #FFFDDD;} I put it in ATO>CSS/HTML Inserts after this code. div#menu1 ul.rMenu li a:link, div#menu1 ul.rMenu li a:hover, div#menu1 ul.rMenu li a:visited, div#menu1 ul.rMenu li a:active { padding: 8px 15px; } ul.rMenu-hor li { margin-bottom: 0px; } However, it is not changing the style of the breadcrumbs. I thought it might have to do with no 'div' in front of the #breadcrumb so I put in the word div on all 3 lines and still nothing is changing. |
You really need to learn som CSS. Is there a <div> with an ID of breadcrumbs? Or is breadcrumbs a class?
|
I copied the code that STB stated in a previous post above. His post says.
<div class="breadcrumbs"><?php if(function_exists('bcn_display')) {bcn_display();}?></div> Put in ATO>style/edit header area>configure header area. So I did that, and the breadcrumbs showed up. The following code #breadcrumb {float: right; padding: 4px 5px 4px 5px; margin-top: 0px; font-size: 85%; margin-right: 5px; background-color:#FFFDDD; color: #003366;} #breadcrumb a {display: inline; border: none; padding: 0; text-transform: none;} #breadcrumb a:hover {color: #000000; background-color: #FFFDDD;} was supplied by another moderator...it might even be STB... in another breadcrumbs thread to change the characteristics/style of the breadcrumbs. The instructions with this code was to place it in ATO>CSS/HTML Insert>CSS Insert. So that is what I did. The instructions also said that colors and positioning could be tweaked. I tried to change the background color, and a couple other things and nothing changed. So after following all the instructions and the style not changing I'm asking for reasons why and how to correct it. |
Classes are prefixed with a period, ID's are prefixed with a pound sign
Fyi STB is not a moderator |
So whomever wrote the 'CSS code' was incorrect to have put the # in front of breadcrumbs.
|
Quote:
HTML Code:
#breadcrumb {float: right; padding: 4px 5px 4px 5px; margin-top: 0px; font-size: 85%; margin-right: 5px; background-color:#FFFDDD; color: #003366;} HTML Code:
.breadcrumb {float: right; padding: 4px 5px 4px 5px; margin-top: 0px; font-size: 85%; margin-right: 5px; background-color:#FFFDDD; color: #003366;} HTML Code:
div.breadcrumb {float: right; padding: 4px 5px 4px 5px; margin-top: 0px; font-size: 85%; margin-right: 5px; background-color:#FFFDDD; color: #003366;} |
Thank you very much for the confirmation of the CSS code. It's greatly appreciated.
|
Well I installed the code you stated in ATO>Add CSS/HTML Inserts>CSS Inserts, however, the code is doing nothing to change the background, margin, etc. of the breadcrumbs. Any thoughts?
|
what is the url?
|
I've given up attempting to get breadcrumbs styling to work and have removed the breadcrumbs from the site.
|
All times are GMT -6. The time now is 10:51 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.