milohuang / reverie

Reverie is a versatile HTML5 responsive WordPress framework based on ZURB's Foundation.
http://theakiba.com/reverie/
MIT License
916 stars 196 forks source link

can one attach a Reveal 'a href' trigger to a menu item? #225

Open randomfreeform opened 11 years ago

randomfreeform commented 11 years ago

(Wanted to ask this at the help forum but it's down.) Does anyone know how to attach a Reveal 'a href' trigger to a menu item?

Menus in WP seem to only allow a URL link, but I want to trigger this code when one clicks the menu item: <a href="#" data-reveal-id="myModal"></a>

thanks for any tips!! R

randomfreeform commented 11 years ago

Any thoughts here??

postphotos commented 10 years ago

Yeah. If you were to write a F4 menu, but not using the WP core menu. The nav-bar supports the data-reveal call, but WP core doesn't. You could take the generated version from your front-end site, copy the HTML source, and put it back in your header.php with the custom menu and reveal call. Or, just look at the F4 docs and write one yourself.

It's not necessarily the best way to do it for a WP site or theme in scale, but entirely doable.

randomfreeform commented 10 years ago

Thanks postphotos!.. I ended up just putting my custom 'menu' at the top of my page (since there was only 2 pages anyways)... I thought about what you suggestted also but apreciate the tips! R