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

montezuma and ubermenu : need to find the wp_nav_menu function call


  #1  
Old Mar 29, 2013, 11:41 AM
voodoo
 
5 posts · Jan 2010
Hi,

I want to use the Ubermenu (http://wpmegamenu.com/) with Montezuma... and it doesn't work fine .

I ask for help on the Ubermenu forum, and this is the answer :
Normally, the output of the wp_nav_menu function is immediately printed. Some themes will take this output and manipulate it via replacement functions or regular expressions. This is almost always bad practice. The proper way to manipulate the wp_nav_menu output is via the use of a custom navigation walker
UberMenu has already created all of its markup; then the theme manipulates that HTML before it is displayed. As a result, the markup is not as expected, and UberMenu styles, layouts, and functionality are likely to break.
You’ll need to find the wp_nav_menu function call and check how it its output is handled. This function is called in the header.php under normal circumstances, but you may need to do a global search on your theme files to locate it.
Look for the echo parameter being set to false and the result being captured in a variable, then manipulated, i.e.
$menu = wp_nav_menu( 'echo' => false );
$menu = str_replace( 'menu' , 'evil-menu' );
echo $menu;


So I have to remove any manipulation of the menu output variable... but I don't know how to "Look for the echo parameter"...

Someone can help me ??

Thanks,
Barbara.
  #2  
Old Mar 29, 2013, 12:10 PM
voodoo
 
5 posts · Jan 2010
ok, I delete includes/menus.php... and it seems to work !

Is it a bad solution ?

Thanks !

Barbara.
  #3  
Old Mar 29, 2013, 12:26 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by voodoo
... and it seems to work !

Is it a bad solution ?
With most coding goals, there are multiple solutions. Easy ones that work tend to score high on most people's lists.

Bookmarks

Tags
ubermenu, wp_nav_menu function

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call to undefined function the_post_thumbnail() anatta Page & Category Menu Bars 3 Jan 23, 2010 09:47 AM
Call to undefined function the_post_thumbnail() numone Header configuration & styling 5 Jan 20, 2010 07:45 PM
Fatal error: Call to undefined function: is_tag() in bfa_get_options.php jmenge Atahualpa 3 Wordpress theme 2 Sep 8, 2009 07:10 AM
Fatal error: Call to undefined function is_front_page() kyuen New Versions, & Updating 4 Mar 1, 2009 07:19 PM


All times are GMT -6. The time now is 09:39 AM.


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