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


  #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



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 06:00 PM.


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