Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Breadcrumb in page menu


  #1  
Old Mar 13, 2009, 03:23 PM
shedhed's Avatar
shedhed
 
52 posts · Mar 2009
Bramhall, UK
I'm tinkering with changing over my theme to Atahualpa which I think is really "sharp".

One thing I'd like to do is get a breadcrumb into the page menu over on the right hand side.

I currently use the Breadcrumb NavXT plugin which uses a bit of code

Code:
<li class="breadcrumb">You are here &raquo;
<?php if (function_exists('bcn_display'))
{
// Display the breadcrumb
bcn_display();
} ?>
</li>
to do the business.

However, as a php novice*, I don't know where to place this. I've tried it in bfa_header_config.php around line 23 and can get the breadcrumb to work but it always ends up in the top left of the header; not the page menu bar itself.

I'm sorry but I can't refer you to my site as I'm doing the tinkering locally.

Any help would be gratefully received.

Thanks, Andy

*for novice read "dangerous buffoon".
  #2  
Old Mar 13, 2009, 04:44 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
in functions/bfa_header_config.php

change

PHP Code:
 if (strpos($header_items,'%bar1')!==false) {
// Horizontal bar 1
$horizontal_bar1 '<div class="horbar1">&nbsp;</div>';
// END of Horizontal bar 1

to
PHP Code:
if (strpos($header_items,'%bar1')!==false) {
// Horizontal bar 1
$horizontal_bar1 '<div class="horbar1">';
if (
function_exists('bcn_display'))
{
// Display the breadcrumb
ob_start();  bcn_display(); $bcn_display ob_get_contents(); ob_end_clean();
}
 
$horizontal_bar1 .= $bcn_display '</div>';
// END of Horizontal bar 1

Then use %bar1 at A. Theme Options -> Header -> Configure header area
  #3  
Old Mar 14, 2009, 05:06 AM
shedhed's Avatar
shedhed
 
52 posts · Mar 2009
Bramhall, UK
Thanks for your reply.

I tried the code as you suggested and can get the breadcrumb to appear as a separate "line" using one of the header bars and modifying its associated CSS.

What I'm struggling with is how to get this on the same line as the actual header page menu.

I'm trying to achieve something similar to my current site http://www.rhodieridgeback.com where you'll see my horizontal page menu and breadcrumb; the former to the left and the latter to the right.

Thanks in advance for any help.


Andy
  #4  
Old Mar 15, 2009, 04:24 PM
shedhed's Avatar
shedhed
 
52 posts · Mar 2009
Bramhall, UK
Flynn,

I've tinkered with the code in your answer and put this in bfa_header_config.php at line 23

Code:
if (function_exists('bcn_display'))
$page_menu_bar .= '<li class="breadcrumb">You are here &raquo;';
{
// Display the breadcrumb
ob_start();  bcn_display(); $bcn_display = ob_get_contents(); ob_end_clean();
}
$page_menu_bar .= $bcn_display ;
$page_menu_bar .= '</li></ul></div>' . "\n";
// END of Page Menu Bar 
}
That seems to get the breadcrumb in the page menu bar - I just need to do some styling to get it to display correctly; with my css "skills" that'll be another week!

Any comments on what I've done more than welcome.

Andy
  #5  
Old Jul 5, 2012, 08:10 AM
Maartendegroot
 
1 posts · May 2012
Quote:
Originally Posted by Flynn
PHP Code:
 if (strpos($header_items,'%bar1')!==false) {
// Horizontal bar 1
$horizontal_bar1 '<div class="horbar1">&nbsp;</div>';
// END of Horizontal bar 1

to
PHP Code:
if (strpos($header_items,'%bar1')!==false) {
// Horizontal bar 1
$horizontal_bar1 '<div class="horbar1">';
if (
function_exists('bcn_display'))
{
// Display the breadcrumb
ob_start();  bcn_display(); $bcn_display ob_get_contents(); ob_end_clean();
}
 
$horizontal_bar1 .= $bcn_display '</div>';
// END of Horizontal bar 1

Then use %bar1 at A. Theme Options -> Header -> Configure header area
This does work properly. However, is there any way to ´hard code´ program this in the theme i.e. insert a css code in the ´add html-css inserts´ section in such a way you don't have to re-do this steps every time an update comes out?

I have tried myself, but I couldn't figure it out.

Last edited by lmilesw; Nov 28, 2013 at 02:47 PM.
  #6  
Old Jul 5, 2012, 01:50 PM
juggledad's Avatar
juggledad
 
23,569 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I would add a new widget area to the 'Configure header area' option
HTML Code:
<?php bfa_widget_area('name=breadcrumb widget area'); ?>
find a good breadcrum plugin
add the plugin's widget to the new widget area.

Now it is a theme option and will remain thru updates.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Nov 28, 2013, 10:41 AM
Ber|Art's Avatar
Ber|Art
 
198 posts · Oct 2009
Europe (NL) ber-art.nl Windows 7x64 WP 3.x Atahualpa 3.7.x
Send a message via Skype™ to Ber|Art
Thx! this works great

Bookmarks

Tags
header

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Atahualpa Page Menu Bar -&gt; BFA Page Menu Bar? bhannemann Page & Category Menu Bars 16 Feb 21, 2011 05:49 AM
[SOLVED] Page tab height issue: page link tabs higher than page menu bar Fux Page & Category Menu Bars 13 Oct 30, 2010 04:42 AM
[SOLVED] Page Menu Bar - Strange Space Occurring Between Menu Items NealSchaffer Page & Category Menu Bars 2 Jun 20, 2009 11:18 AM
How do I add an icon to a page menu link in page menu bar? bcorrigan Page & Category Menu Bars 9 Apr 6, 2009 03:35 PM
Atahualpa 3.0 Theme Options > Page Menu Bar - Page Error on Save bseppa Atahualpa 3 Wordpress theme 9 Dec 12, 2008 06:35 PM


All times are GMT -6. The time now is 01:48 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.