Update #3: Using Twitter Bootstrap 2.0 Dropdown Menus with WordPress

 

02/17/12 – Updated! Click here for the latest code. After some testing, there were a few fixed to clean up the HTML.

 


Okay, I’ve made a bit of an update to the code.

This should get stock WordPress menus working well with the Twitter Bootstrap 2.0 framework. There are still a few things that need changed, but I need to get a new test instance of WP running first, and I haven’t had the time. We’ll be using it on the station’s site soon, so I imagine it won’t be long before I update it again.

I was thinking of making this a plugin, just to get a plugin out there… not sure.

I’m glad to help anyone with questions, just hit me up in the comments.

Added:
data-toggle attribute
dropdown caret

Needs to be fixed (will be fixed once I get a few minutes to reinstall mamp & such) :
nav class on parent <ul>
clean up code & html

gist:
gist.github.com/1597994

Advertisements

2 responses

  1. […] 02/13/12 – This has been updated to work with Twitter Bootstrap 2.0. […]

  2. […] 02/13/12 – This code has been updated to work with Twitter Bootstrap 2.0. Click here to see th… […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: