193 posts Test Subject at Envato Science
  • Member of the Envato Team
  • Has been part of the Envato Community for over 7 years
  • Attended one of our Meetups around the world
  • Helped several times protecting Envato Market against copyright violations
+5 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
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Located in 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
  • Member of the Envato Team
  • Has been part of the Envato Community for over 7 years
  • Attended one of our Meetups around the world
  • Helped several times protecting Envato Market against copyright violations
+5 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

741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 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
  • Member of the Envato Team
  • Has been part of the Envato Community for over 7 years
  • Attended one of our Meetups around the world
  • Helped several times protecting Envato Market against copyright violations
+5 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
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Located in 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 >.

741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 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
  • Member of the Envato Team
  • Has been part of the Envato Community for over 7 years
  • Attended one of our Meetups around the world
  • Helped several times protecting Envato Market against copyright violations
+5 more
Ibby Envato team says

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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by