Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0averyan/yahoo-pure-menu-for-wordpress
Makes Yahoo Pure's new Menu component play nice with WordPress.
https://github.com/0averyan/yahoo-pure-menu-for-wordpress
Last synced: 3 days ago
JSON representation
Makes Yahoo Pure's new Menu component play nice with WordPress.
- Host: GitHub
- URL: https://github.com/0averyan/yahoo-pure-menu-for-wordpress
- Owner: 0aveRyan
- License: gpl-2.0
- Created: 2015-02-16T00:43:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-16T01:02:59.000Z (over 9 years ago)
- Last Synced: 2023-02-28T07:12:20.792Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 152 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yahoo! Pure Menu for WordPress
[Yahoo! Pure](https://github.com/yahoo/pure) has a completely rewritten menu component for v0.6.0 (props [@jamesalley](https://github.com/jamesalley))!However, the new menu relies on selectors on both line items and anchor links, something the default ```wp_nav_menu()``` Walker doesn't do.
This is a simple walker class to add to your functions.php and snippet to use for instances of ```wp_nav_menu()```.
This walker is currently in development, and is missing key functionality like listening to target and link attributes defined in WordPress Dashboard.
## Paste into theme's functions.php
Snippet found in ```walker_class.php``` should be pasted into your theme's ```functions.php``` file!
## Boilerplate wp_nav_menu() template tag
Paste snippet found in ```example_template_tag.php``` to output menu wrapped in ```
- ``` with proper Pure selector.
Strips the default ```
You might need to define other attributes found [here in WordPress Codex](http://codex.wordpress.org/Function_Reference/wp_nav_menu).
*You must define either a $menu or $theme_location.*
### Menu Tip
Don't add a "Home" link in WordPress Dashboard Menu Builder. To mimic Pure documentation site, paste this below your ```