Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Darren Healy
Front End Web Development Techdegree Student 23,565 PointsWhat is the answer...
In order to prevent WordPress from wrapping our menu in a div, we have to set the (something) parameter for our menu to 'false'.
I thought the answer was; show_admin_bar.
What is the actual answer?
6 Answers

Dimitris Arkolakis
6,944 Pointscontainer parameter

Zac Gordon
Treehouse Guest TeacherThere are a couple things here. You have to have a menu created and assigned to that location first. Then use the container parameter set to '' (empty). Oddly, it won't work without those first steps.

Darren Healy
Front End Web Development Techdegree Student 23,565 PointsErr... I'm still no clearer. Sorry!
The quiz question was: In order to prevent WordPress from wrapping our menu in a div, we have to set the ________ parameter for our menu to 'false'.
I couldn't get what was to go in thegap.

Ali Rizwan
Courses Plus Student 21,460 Pointsprecisely, it's container parameter

Dovydas Simonovas
Front End Web Development Techdegree Student 29,776 PointsThe answer is container

Darren Healy
Front End Web Development Techdegree Student 23,565 PointsI want to answer no Stephen!
I'm just following along with the WordPress development track... and the question came up in a quiz.
This is my code so far:
<?php
function theme_styles() {
wp_enqueue_style( 'bootstrap_css', get_template_directory_uri() . '/css/bootstrap.min.css' );
wp_enqueue_style( 'main_css', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'theme_styles' );
function theme_js() {
global $wp_scripts;
wp_register_script( 'viewport_workaround', get_template_directory_uri() . '/assets/js/ie10-viewport-bug-workaround.js', '', '', true);
wp_register_script( 'html5_shiv', 'https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js', '', '', false);
wp_register_script( 'respond_js', 'https://oss.maxcdn.com/respond/1.4.2/respond.min.js', '', '', false);
wp_register_script( 'respond_js', 'https://oss.maxcdn.com/respond/1.4.2/respond.min.js', '', '', false);
$wp_scripts->add_data( 'html5_shiv', 'conditional', 'It IE 9');
$wp_scripts->add_data( 'respond_js', 'conditional', 'It IE 9');
$wp_scripts->add_data( 'viewport_workaround', 'conditional', 'IE 10');
wp_enqueue_script( 'bootstrap_js', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js', array('jquery'), '', true );
}
add_action( 'wp_enqueue_scripts', 'theme_js' );
//add_filter( 'show_admin_bar', '__return_false' );
add_theme_support( 'menus' );
function register_theme_menus() {
register_nav_menus(
array(
'header-menu' => __( 'Header Menu' )
)
);
}
add_action( 'init', 'register_theme_menus' );
?>
Stephen O'Connor
22,291 PointsStephen O'Connor
22,291 PointsAre you using the wp_nav_menu() function? If so, check out the WordPress Codex