Drop-down menu tutorial for WordPress
As stated in this (dutch) post, finding a simple working way for a drop-down menu in WordPress isn’t easy. Therefor I’ll share here with you a modification of a workaround that I (literally) found somewhere online, made by Stig Roar Lier Habbestad and which is based on the Jillij theme. Because there is no homebase created for this tutorial by either Stig Roar Lier Habbestad or the maker of jillij.com I give it a place here.
Why
I don’t want to put you in the dark holes of the internets to make the same search quest as I did. I adapted this workaround more to a general use and updated this for the latest versions of WordPress.
What is it exactly?
This tutorial creates a horizontal CSS drop-down menu. This drop-down menu contains a “button” for your blog entries, all your WordPress pages, has an option to include other URL (outside your site) and has an option for an admin “button”. The menu shows transparancy with Firefox, but unfortunatly this transparancy is not visible in Internet Explorer 6 or 7. Right now I don’t have any results with other browsers.
Give me an example!
A working example of this workaround can be seen here.
Enough bla-bla
let’s take off
1. Insert the following code somewhere in the head section between < head > and < /head > in header.php
Continue this workaround on the next page
Leuk idee wel, alleen zou ik een plugin maken met een aangepaste wp_list_pages() functie, waardoor je de sourcecode van wordpress niet hoeft aan te passen.
Op zich moet het hele ding ook in een plugin gepropt kunnen worden natuurlijk.
Oh, wacht ff, het kan makkelijker, het moet kunnen zonder de source aan te passen door:
wp_list_pages
(’sort_column=menu_order’);
te vervangen door:
wp_list_pages
(’sort_column=menu_order&title_li=’);
Dit heb ik niet getest overigens, maar het zou moeten werken.
*floodt de reacties nog wat*
Leef je uit Zoute, zou ik zeggen!
Ok, in een plugin gepropt: goudendouche.co...wn-menu-plugin/
Vielen Dank für deine Arbeit! Ich nutze es als Plugin und es funktioiert gut. Allerdings nur ohne Lightbox. Aber das bekomm ich noch hin.
Werkt niet meer toch? (wordpress 2.3)
Geen flauw idee Jesse. Ik heb het eerlijk gezegd nog niet getest.
Kreeg je het niet werkende op 2.3?
Nope is niet gelukt:( nu drop-down-menu plugin van zoute pruik proberen, maar daar ook ie7 probleem:( FF werkt wel.
is deze tutorial incompatible met WP versie 2.3 en hoger? (huidige WP versie is 2.7.1)
thanks,jayz