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

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

Old Jul 15, 2009, 10:11 AM
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:
%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:
%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?

Old Jul 15, 2009, 04:47 PM
Flynn's Avatar
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
Old Jul 15, 2009, 06:14 PM
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,



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 10:44 AM
Add custom php/js menu below header dmtompki Header configuration & styling 6 Jun 23, 2009 10:03 AM
How to add custom page menu bar rinoa3108 Page & Category Menu Bars 2 May 5, 2009 04:33 PM
Custom Header - Inserting HTML table and links over header. hotsauce Header configuration & styling 2 Apr 9, 2009 05:56 AM
Adding custom pages to menu FH4U Page & Category Menu Bars 2 Feb 9, 2009 02:31 PM

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

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