Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   WordPress 3 compatibility for 'custom menus' (http://forum.bytesforall.com/showthread.php?t=7644)

peterluit Jun 17, 2010 11:26 PM

WordPress 3 compatibility for 'custom menus'
 
I saw these instructions (http://www.wpbeginner.com/wp-themes/...ss-3-0-themes/) on how to enable ‘custom menus’ in existing themes. Can anyone tell me where to put the second part of the code in order to work with ‘custom menus’ in Atahualpa?

1: add_theme_support( 'nav-menus' );

2: <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>

Thanks,

Peter Luit

Knut Sparhell Jun 18, 2010 02:49 AM

That would be in either functions/bfa_header_config.php or functions/bfa_hor_pages.php, but it's not that simple. Yiu can not just incect this code and make it work, at least not nice.

This menu, if displayed at all, will not be styled correctly according to Atahualpa. And if no menu is created and referenced in the arguments, then a page menu will appear. And there is no argument sort_column as determining the order is done in the WordPress Menu page.

It didn't quite work for me in my little test, but this may be a start if you really can't wait.

juggledad Jun 18, 2010 11:13 AM

Atahualpa 3.5.1 does not support the new menus you can create with WordPress 3.0. If you want to use the new menus, you will have to provide ALL the CSS to style them yourself. Hopefully a future release will support the new menus of WordPress 3.0

I've added this as an RFE to http://forum.bytesforall.com/showthread.php?t=7312

videocp Jun 19, 2010 03:08 PM

Atahualpa is my preferred template and the template I install of all of my clients. I really would like to see the custom menu feature added too. Keeping Atahualpa just one more step ahead of them all as far as I'm concerned.

juggledad Sep 1, 2010 03:47 AM

Atahualpa 3.5.3 supports the new menus

LizM Oct 2, 2010 11:00 PM

I think this is my issue too. I've created a menu2 in Wordpress 3 (Appearance->menus) consisting of just links, not categories. It simply doesn't appear on the page. I have also installed the bugfix for bfa_new_wp3_menus.php.

Is there CSS I can add that would make it appear, or is it more complex than that? I could hardcode it all into the header php no doubt, but that would be inelegant if there is a fix that plays nice with the Wordpress interface and Atahualpa 3.5.3.

That and, it'd be good to be able to specify WHERE it goes :)

Thanks to anyone who can help!

juggledad Oct 3, 2010 03:17 AM

If you specified menu2, then that will replace the %cats option in the header configuration. Menu1 replaces %pages.

BUT... If you don't use %pages or %cats, neithor menu1 nor menu2 will show

allyevans Oct 16, 2010 02:17 PM

Quote:

Originally Posted by juggledad (Post 45103)
If you specified menu2, then that will replace the %cats option in the header configuration. Menu1 replaces %pages.

BUT... If you don't use %pages or %cats, neithor menu1 nor menu2 will show


I need help on this - I keep playing around with no luck. If I add just menu1 in configure header area with no %pages, it shows "menu1" in text on the top left. If I add %pages and menu1, it gives me my menu but also the text "menu1" underneath. I can get the menu in a widget with a vertical list but I really want it to be a horizontal bar. Can you help?? Also, how do I style the custom menu? What is the CSS selector?

juggledad Oct 16, 2010 03:34 PM

If you want to use the new WordPress menus, go to the new menu option in WordPress and build a custom menu.

Then you name your new menu in the menu1 option. This equates to %pages in the header configuration. IE where you put %pages, your new menu will show up. You don't use your new menu name in the header configuration, you still use %pages and %cats, but it will pick up teh menu you specified at sth menu1 or menu2 on teh Menu option page.

Clear as mud right?? ;)


All times are GMT -6. The time now is 03:23 AM.

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