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 trialthomas kleven
110 Pointswhy not dynamically + links 2 the nav template using a php arg array? Or change the wp widget css in wp-template
I was curious about a possible solution to manipulate the css for the dropdown links section of the course Roughly(2:50). Currently we have to restyle the menu's css in order to reflect our changes for the dropdown menus. Isn't there a way to manipulate the wp theme and dynamically add the css rules to the dropdown menu in order to run off foundations css?
2 Answers
Samuel Schumacher
5,259 PointsI've found a custom WordPress function that will do all this work for you. I've found it extremely time saving and effective for my projects. It doesn't support sub-sub-page dropdown menus, but other than that it pretty sweet. Check it out here: https://github.com/twittem/wp-bootstrap-navwalker
Leigh Maher
21,830 PointsIf anyone's trying to do this with Bootstrap4, I've found that this solution worked for me: http://simonpadbury.github.io/2016/03/09/bootstrap-4-navbar-with-dropdowns-for-wordpress.html
anthonyvigliano
1,667 Pointsanthonyvigliano
1,667 PointsI tried using navwalker, but couldn't get it to work with this nav in the course. The links wouldn't show on the navbar