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 » Header configuration & styling »

[SOLVED] Emiting custom <ul>...</ul> menu HTML


  #1  
Old Jul 15, 2009, 11:11 AM
gesman
 
35 posts · Feb 2009
Hi there,
I want to replace standard pages menubar with my own - in particular the one that is generated by NAVT plugin - because it is so flexible.

My first idea to do it was to edit the code inside of:
Style and Edit Header Area -> Configure Header area
like this:
Code:
%image <?php if (function_exists('navt_getlist')) navt_getlist ('menu1', true); ?>
But apparently in the above spot the function 'navt_getlist' does not exist.

My second idea was to create custom widget area like this:
Code:
%image <?php bfa_widget_area('name=Horizontal menu&cells=1'); ?>
And then paste PHP executable code inside of Text widget (supported by Exec-PHP plugin) placed in above new widget area.

Second approach generates lots of extra "table" code + standard widget formatting around that I envision would be difficult to style correctly.

So my question is - what would be the cleanest way to emit custom <ul>...</ul> code right after the %image without bunch of formatting around?

Gleb
  #2  
Old Jul 15, 2009, 05:47 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Have you tried without function_exists

%image <?php navt_getlist ('menu1', true); ?>
That may throw an error if you deactivate the plugin but it would be interesting to see which function isn't available there. I will have to change this if plugin functions don't work there

The widget area works with tables for greater stability with side by side boxes as you probably know. I might add another option there to create these areas with CSS-only

If the header area doesn't work I can only suggest a widget area
  #3  
Old Jul 15, 2009, 07:14 PM
gesman
 
35 posts · Feb 2009
Man, you rock!

Silly me - it *does* find it without function_exists() - so life is bright and beautiful.

Although it's still a mystery why 'function_exists' returns FALSE - but it may something to do with namespaces.

Thanks Flynn,

Gleb

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom HTML instead of header picture? robertomueller Header configuration & styling 2 Jul 13, 2009 11:44 AM
Add custom php/js menu below header dmtompki Header configuration & styling 6 Jun 23, 2009 11:03 AM
How to add custom page menu bar rinoa3108 Page & Category Menu Bars 2 May 5, 2009 05:33 PM
Custom Header - Inserting HTML table and links over header. hotsauce Header configuration & styling 2 Apr 9, 2009 06:56 AM
Adding custom pages to menu FH4U Page & Category Menu Bars 2 Feb 9, 2009 03:31 PM


All times are GMT -6. The time now is 04:15 PM.


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