Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

[SOLVED] Yoast Breadcrumbs And Page Menu Bar


 
Prev Previous Post   Next Post Next
  #1  
Old Jun 13, 2009, 07:45 PM
fromtheranks
 
149 posts · Apr 2009
Dev Env't: XP Pro SP3, IIS 5.1, MySQL 5.1, PHP 5.2.x, WP 2.7.1, Atahualpa 3.3.3, IE 7, FF 3.0.x
Information [SOLVED] Yoast Breadcrumbs And Page Menu Bar

I'm trying to add bread crumbs to my page menu bar. I found http://forum.bytesforall.com/showthr...ght=breadcrumb and have been trying to emulate that logic with the Yoast Breadcrumb plugin: http://yoast.com/wordpress/breadcrumbs/.

I'm doing something wrong or haven't done something else that I should.

It works, sort of, but the Breadcrumbs do a new paragraph, or something at the end of the last page menu tab (in this case "Sitemap"), and it gets worse if I try to move through the pages ... it actually picks up the enter tab (format, borders and all) and inserts them into the bread crumb trail. See the attached images.

The default code from the yoast breadcrumb site is:

Code:
<?php if ( function_exists('yoast_breadcrumb') ) {
	yoast_breadcrumb('<p id="breadcrumbs">','</p>');
} ?>
In the tests below I tried the function with and without the argument as in the above example, and getting rid of the para tags helped, fractionally but that is all. (I also tried it in header.php and it didn't show up.)

I've tried two different styles of code in bfa_header_config (using the above forum link as a "template", and they both result in essentially the same result:

#1 - my code is in red:
Code:
	$page_menu_bar .= bfa_hor_pages($bfa_ata['sorting_page_menu_bar'], $bfa_ata['levels_page_menu_bar'], 
	$bfa_ata['titles_page_menu_bar'], $bfa_ata['exclude_page_menu_bar']);
	if ( function_exists('yoast_breadcrumb')) 
	{
		ob_start(); yoast_breadcrumb(); $yoast_breadcrumb = ob_get_contents(); ob_end_clean();
	}
	$page_menu_bar .= $yoast_breadcrumb;
	$page_menu_bar .= '</ul></div>' . "\n";
	// END of Page Menu Bar
#2 - I also tried this version:
Code:
	if ( function_exists('yoast_breadcrumb'))
	$page_menu_bar .= '<li class="breadcrumbs">You are here $raquo;'; 
	{
		ob_start(); yoast_breadcrumb(); $yoast_breadcrumb = ob_get_contents(); ob_end_clean();
	}
	$page_menu_bar .= $yoast_breadcrumb;
	$page_menu_bar .= '</li></ul></div>' . "\n";
Am I coding something incorrectly. Possible, considering I'm new to PHP and HTML. Or. Am I barking up a dead tree here? ...

Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	breadcrumb-1.jpg
Views:	2858
Size:	14.3 KB
ID:	158  Click image for larger version

Name:	breadcrumb-2.jpg
Views:	2867
Size:	16.3 KB
ID:	159  
 

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Page Menu Bar - Strange Space Occurring Between Menu Items NealSchaffer Page & Category Menu Bars 2 Jun 20, 2009 11:18 AM
[SOLVED] Yoast Breadcrumbs And Page Menu Bar - Follow-up fromtheranks Plugins & Atahualpa 0 Jun 17, 2009 03:01 AM
[SOLVED] Breadcrumbs in Page Menu Bar not working ... no matter what ... but has for fromtheranks Page & Category Menu Bars 2 Jun 17, 2009 02:52 AM
Integration with Yoast Breadcrumbs lawvol Plugins & Atahualpa 2 Feb 17, 2009 07:21 PM
[SOLVED] Very minor : page menu bar home option dcousquer Page & Category Menu Bars 1 Dec 13, 2008 04:52 AM


All times are GMT -6. The time now is 06:55 PM.


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