0

I'm using the bones starter theme, and have already created one menu that looks like it's supposed to. It's called like this:

<?php bones_main_nav(); ?>

and in the css it's styled simply by using the .menu class.

Now I've created an alternate menu that will be used on some pages. I want it to have the exact same style applied to as the first one, only include different pages. I've called it like this:

<?php wp_nav_menu( array('menu' => 'my custom menu' )); ?>

That shows the right pages but I can't seem to figure out how to apply the same styles to it that are already applied to the first one.

1 Answer 1

1

Ok so I figured it out for myself, just had to pass the attributes like this:

<?php wp_nav_menu(array('menu' => 'custom menu', 'menu_class' => 'menu', 'container_class' =>  'menu clearfix', 'theme_location' => 'main_nav')) ?>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.