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

PHP How to Build a WordPress Theme Converting Static HTML into WordPress Templates Coding the Header and Footer Templates

Romain Yvenat
Romain Yvenat
1,687 Points

menu display on firefox and ie

Hi there! after i followed steps of this course,the menu is displaying correctly in chrome, but not in firefox or ie. anyone have an idea why and knows how to fix it? (menu display vertically in these two browsers, instead of horizontally)

Cheers!

Romain Yvenat
Romain Yvenat
1,687 Points

This is the code by the way

<?php
                $args = array(
                    'menu' => 'main-menu',
                    'echo' => false
                );


                echo strip_tags(wp_nav_menu( $args ), '<a>');
?>

1 Answer

Sounds like a cross browser compatibility problem. Check to make sure CSS3 properties are supported. also make sure you are using the right prefixes. -webkit- Chrome/Safari, -moz- Firefox, -o- Opera, -ms- IE. If it also works on Safari that would make this more conclusive.