193 posts Test Subject at Envato Science
  • Envato Team
  • 8 Years of Membership
  • Meetup Participant
  • Super Copyright Ninja
+6 more
Ibby
Envato team
says

Hey guys, I hope you are well.

I’m reading Rockstar Wordpress Designer and I’m pretty confused about the following thing.

I have already replaced all the urls with <?php bloginfo(‘url’); ?> Also, I have updated the head including trackbacks, favicon image, space for plugins (<?php wp_head(); ?>) etc.

ok, now I need to add the following lines within functions.php

add_theme_support( ‘menus’ );

if(function_exists(‘register_nav_menu’)): register_nav_menu( ‘primary_nav’, ‘Primary Navigation’); endif;

to get this http://cl.ly/755ce196113bbb55651a

but I’m getting this http://cl.ly/32477e50984a9c60b34c and this http://cl.ly/c946b353cc1bdcd81172

I’m using kubrick default theme but I don’t really know if I should use the default theme from 3.0.1 version.

Thanks a lot.

29 posts
  • 4 Years of Membership
  • Exclusive Author
  • United Kingdom
mediasocket
says
Try using an array when using register navmenus…
register_nav_menus( array(
    'primary' => __( 'Primary Navigation', 'Your Theme' ),
) );

You can also remove:

add_theme_support( ‘menus’ );

as register_nav_menus automatically makes wp3 menus available.

193 posts Test Subject at Envato Science
  • Envato Team
  • 8 Years of Membership
  • Meetup Participant
  • Super Copyright Ninja
+6 more
Ibby
Envato team
says
Try using an array when using register navmenus…
register_nav_menus( array(
    'primary' => __( 'Primary Navigation', 'Your Theme' ),
) );

You can also remove:

add_theme_support( ‘menus’ );
as register_nav_menus automatically makes wp3 menus available.

Thanks for your help mediasocket, can’t get into Theme Location yet, is it because I’m using the kubrick theme? Should I use the default Twenty Ten from 3.0.1 version?

Thanks a lot

743 posts
  • Elite Author
  • Weekly Top Seller
  • Featured Item
  • Most Wanted Winner
+5 more
Orbital_Themes
says
Try this:
add_action( 'init', 'register_menus' );

function register_menus() {
    register_nav_menu( 'primary-nav', 'Primary Navigation' );
}

:whistle:

193 posts Test Subject at Envato Science
  • Envato Team
  • 8 Years of Membership
  • Meetup Participant
  • Super Copyright Ninja
+6 more
Ibby
Envato team
says
Try this:
add_action( 'init', 'register_menus' );

function register_menus() {
    register_nav_menu( 'primary-nav', 'Primary Navigation' );
}
:whistle:

ummm still the same :(

http://cl.ly/0080031ea584a0a21aee

29 posts
  • 4 Years of Membership
  • Exclusive Author
  • United Kingdom
mediasocket
says

The theme location is created when you add the menu to the header.php or wherever.

For example:

<?php wp_nav_menu( array('theme_location' =?> 'primary' ) ); ?>

Edit: Ignore the ? in between = and >.

743 posts
  • Elite Author
  • Weekly Top Seller
  • Featured Item
  • Most Wanted Winner
+5 more
Orbital_Themes
says

From the coloring of your code I could tell, that you haven’t placed your functions inside <?php ?> tags :)

193 posts Test Subject at Envato Science
  • Envato Team
  • 8 Years of Membership
  • Meetup Participant
  • Super Copyright Ninja
+6 more
Ibby
Envato team
says

thanks for the help guys! It’s fixed! =D Have a nice weekend!

by
by
by
by
by
by