Making Atahualpa WP 3.0-ready for new menu function
I attended the NYC Wordpress Meetup last night, where 3.0 was outlined for us. I had already been testing 3.0beta2, so I knew about the new menu function. Essentially, it lets you combine pages, posts and outside URLs in one menu. If your theme is compliant, you can put the menu in the horizontal menu bar below the header. If the theme doesn't support this, you can use the menu as a sidebar widget.
I hope Flynn will make Atahualpa 3.4.9 support this wonderful feature. I'm sure he can figure it out from the Twenty-Ten theme, which is the new Wordpress default theme (no more Kubrick). This is some code from the new functions.php file. I'm not a PHP coder so this may not be all that's needed: Code:
if ( ! function_exists( 'twentyten_page_menu_args' ) ) : |
Thank you, Paula
For valuable info! :) |
if you want to play with this new menu's here is an UNSUPPORTED change you can make to Atahualpa 3.5.1 so you can mess around with the new menus
1) edit function.php and change the last line (line 777) from HTML Code:
?> HTML Code:
add_theme_support( 'nav-menus' ); HTML Code:
<?php bfa_header_config($bfa_ata['configure_header']); ?> HTML Code:
<?php bfa_header_config($bfa_ata['configure_header']); ?> This code will give you the first menu you defined, if you want another menu, change the line to HTML Code:
<?php bfa_header_config($bfa_ata['configure_header']); ?> |
Close, but no cee-gar. I get this: http://gyazo.com/a46c3c654edec18528212c167263d643.png
I had gotten the same result a different way, but adding Code:
// This theme uses wp_nav_menu() Code:
<php wp_nav_menu( 'id=navbar&menu_class=headermenu' ); ?> |
Eithor way will work. The ''container_class' => 'menu-header'' or 'menu_class=headermenu' specifies the class=.... that will be assigned to the menu, now you need to create the CSS to display it the way you want.
You can add CSS to style it using .menu-header {.....} (or .headermenu {...} in your case) and style it how you want. It won't pick up Atahualpa's menu styling you need to add your own for now |
All times are GMT -6. The time now is 03:45 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.