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 trialDaniel Cortes
31 Pointswhy is the nav menu still showing as bullet points?
So I am watching the course: Building a WordPress Theme with Foundation 5
In my nav menus it shows it as bullet points instead of menu items. What should I be looking at?
1 Answer
Nijesh Nj
18,232 PointsIt will be better if you paste your code. But for now, I will assume my code as yours. Let's start We will assume that you navbar HTML is
<ul class="nav-bar">
<li>Home</li>
<li>About</li>
<li></li>
</ul>
Then your in your should be:
.nav-bar {
list-style: none;
}
In some case this may not work. if not try
.nav-bar{
list-style-type: none;
}
If these are not working then try to add this styles to the <li> inside the nav-bar class.
I haven't watched the video. This is the basic css. So if it's wrong, sorry.
Daniel Cortes
31 PointsDaniel Cortes
31 PointsHey, your answer seems correct and I have tried both and nothing has changed. I put debug mode on and I get this error, but I am unsure if it is related:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'upability_register_custom_menu' not found or invalid function name in /Users/danale/Downloads/mediafuel_workshop/wp-includes/class-wp-hook.php on line 298
I started this site using the underscores.me skeleton so my functions.php looks like this:
<?php /**
if ( ! function_exists( 'upability_setup' ) ) : /**
function upability_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on UpAbility, use a find and replace * to change 'upability' to the name of your theme in all the template files. */ load_theme_textdomain( 'upability', get_template_directory() . '/languages' );
} endif; add_action( 'after_setup_theme', 'upability_setup' );
add_action('init', 'upability_register_custom_menu');
/**
/**
/**
function upability_scripts() { wp_deregister_script('jquery'); wp_register_script('jquery','http://code.jquery.com/jquery-2.2.4.min.js', false, null); wp_enqueue_script('jquery'); } if(!is_admin()) add_action('wp_enqueue_scripts','upability_scripts');
function upability_styles() { wp_enqueue_style( 'upability', get_template_directory_uri() . '/assets/css/foundation.css' ); wp_enqueue_style( 'upability_icons', get_template_directory_uri() . '/assets/css/foundation-icons.css' ); wp_enqueue_style( 'theme_css', get_template_directory_uri() . '/style.css' );
} add_action( 'wp_enqueue_scripts', 'upability_styles' );
/**
/**
/**
/**
/**
My style.css:
Navigation
--------------------------------------------------------------*/
/* Top Nav */
.top-nav { width: 100%; background: #219CD7; padding: 0; margin: 0; }
.top-list-right { padding: 0; margin: 0; list-style: none; overflow: hidden; float: right;
}
/* Top Bar */
.top-bar {
}
Nijesh Nj
18,232 PointsNijesh Nj
18,232 PointsK.. Will try to help! If you wrote this on workspaces please share the link.