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 »

montezuma and ubermenu : need to find the wp_nav_menu function call


  #1  
Old Mar 29, 2013, 10:41 AM
voodoo
 
5 posts · Jan 2010
montezuma and ubermenu : need to find the wp_nav_menu function call

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, 11:10 AM
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, 11:26 AM
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 08:47 AM
Call to undefined function the_post_thumbnail() numone Header configuration & styling 5 Jan 20, 2010 06:45 PM
Fatal error: Call to undefined function: is_tag() in bfa_get_options.php jmenge Atahualpa 3 Wordpress theme 2 Sep 8, 2009 06:10 AM
Fatal error: Call to undefined function is_front_page() kyuen New Versions, & Updating 4 Mar 1, 2009 06:19 PM


All times are GMT -6. The time now is 04:29 AM.


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