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 » Montezuma Theme »

Adding a second menu to breadcrumbs


  #1  
Old May 16, 2013, 11:03 AM
manunu
 
9 posts · May 2013
Hi, everyone,

In my last post i cand understand something about his awesome theme, but now i modify for adding a Secondary Menu, For this, i delete some lines of code in the breadcrumbs.php file, but my problem is i don't know how i can call the second menu.

Thanks again
  #2  
Old May 16, 2013, 11:08 AM
jerryc
 
367 posts · Oct 2012
Florida
Did you look in the limited code?
  #3  
Old May 16, 2013, 11:21 AM
manunu
 
9 posts · May 2013
Where? This is my new breadcrumbs.php file

Code:
<?php function bfa_breadcrumbs($id = '', $home = '&nbsp;', $sep = '' ) {

	global $post, $wp_query, $author;
	
	$before = '<span class="bc-current">'; 
	$after = '</span>'; 
	

	# if ( is_home() OR is_front_page() )  { $sep = ""; }

	echo '<ol><li class="bc-home"><a href="' . home_url() . '">' . $home . '</a></li>';


	if ( is_category() ) {
		$cat_obj = $wp_query->get_queried_object();
		$thisCat = $cat_obj->term_id;
		$thisCat = get_category($thisCat);
		$parentCat = get_category($thisCat->parent);
		if ($thisCat->parent != 0) 
			echo '<li>' . get_category_parents($parentCat, TRUE, "</li><li>") ;
		else echo '<li>';
		echo $before . single_cat_title("", false) . $after . '</li>';
		
	} elseif ( is_day() ) {
		echo '<li><a href="' . get_year_link(get_the_time("Y")) . '">' . get_the_time("Y") . '</a></li>';
		echo '<li><a href="' . get_month_link(get_the_time("Y"),get_the_time("m")) . '">' . get_the_time("F") . '</a></li>';
		echo '<li>' . $before . get_the_time("d") . $after . '</li>';
		
	} elseif ( is_month() ) {
		echo '<li><a href="' . get_year_link(get_the_time("Y")) . '">' . get_the_time("Y") . '</a></li>';
		echo '<li>' . $before . get_the_time("F") . $after . '</li>';
		
	} elseif ( is_year() ) {
		echo '<li>' . $before . get_the_time("Y") . $after . '</li>';
	
	} elseif ( is_home() ) {
/*	BORRADO INTENCIONALMENTE	echo '<li>' . $before . __( 'Blog', 'montezuma' ) . $after . '</li>'; */
	}
	
/* BORRADO INTENCIONAL
	if ( get_query_var('paged') ) {
		echo '<li class="bc-pagenumber">';	
		if ( is_category() OR is_day() OR is_month() OR is_year() OR is_search() OR is_tag() OR is_author() ) 
			echo ' (';
		echo 'Page ' . get_query_var('paged');
		if ( is_category() OR is_day() OR is_month() OR is_year() OR is_search() OR is_tag() OR is_author() ) 
			echo ')';
		echo '</li>';
	}
	 */

	
	echo '</ol>';
	
	
}
but in the theme options if possible put 2 menus, in the zone where is the Home icon i want to put a secondary menu.
  #4  
Old May 16, 2013, 12:12 PM
jerryc
 
367 posts · Oct 2012
Florida
Go to dashboard > appearance > mz options, and in the upper right there's a tab for the limited code
  #5  
Old Jun 11, 2013, 08:59 AM
manunu
 
9 posts · May 2013
Hi Again,

Sorry for the time, I made some changes to my montezuma theme, but i can't change the place where is the "house icon" with the navigation. I just want to put a menu in that place (in fact, i need two menus in my site, the principal with icons, and a secondary with another information or tags, and the better place for that is where is the house icon).

That is only what i need, help please

Best regards,
  #6  
Old Jun 11, 2013, 01:25 PM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
You don't need to edit breadcrumbs.php if you want to remove the breadcrumbs line. What you need to do is make a change in the virtual files, particularly to header.php. It's header.php that determines what your header looks like, including the logo, site title, and any menus that are place there.

From your Dashboard, go to Appearances > Montezuma Options > Subtemplates > header.php.

Remove the line that displays the breadcrumb (it should be at the bottom) and then add another wp_nav_menu call for menu2. As JerryC said, if you click on the gray tab in the upper right corner of the header.php page that is labeled Limited PHP Code, a help section will slide down and you should be able to find an example about how to call wp_nav_menu for your second menu.

After you've made the changes and are satisfied with it, read the documentation in the Main Templates and Subtemplates sections to get an idea as to how the virtual file system works, in case you want to make any further changes.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!

Last edited by CrouchingBruin; Jun 11, 2013 at 01:29 PM.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Yoast Breadcrumbs – WordPress Breadcrumbs shoffmeister Montezuma Theme 1 Feb 8, 2013 03:19 AM
[SOLVED] Parent menu-items not clickable in menu but still clickable in breadcrumbs N Zenman Page & Category Menu Bars 2 Feb 25, 2011 08:59 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
[SOLVED] Yoast Breadcrumbs And Page Menu Bar fromtheranks Plugins & Atahualpa 6 Jun 14, 2009 08:59 PM


All times are GMT -6. The time now is 12:08 PM.


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