开发者 |
black-studio
marcochiesi thedarkmist |
---|---|
更新时间 | 2022年7月1日 21:27 |
捐献地址: | 去捐款 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 6.0 |
Plugins
menu and Add New
button (or upload the entire black-studio-touch-dropdown-menu
folder to the /wp-content/plugins/
directory)By default the plugin applies its behavior to all hyperlinks that are direct children of nested unordered list. This is corresponding to the following jQuery selector: li:has(ul) > a
, which is very generic and should fit with almost every theme. In some case the use of this generic selector may cause unexpected behaviors on nested unordered lists that are not navigation menus and do not have any dropdown effect applied. To workaround this, the plugin provides the filter black_studio_touch_dropdown_menu_selector
, that allows advanced users to customize the selector to use.
Example (based on Twenty Eleven theme markup):
add_filter( 'black_studio_touch_dropdown_menu_selector', 'my_custom_selector' ); function my_custom_selector( $selector ) { return 'nav li:has(ul) > a'; }
The plugin behavior is intentionally disabled on Apple devices with iOS version 5 or later, as it should be provided natively by the devices. Anyway, if you want to force the application even on these devices, there's a filter hook for that. You may use the following snippet:
add_filter( 'black_studio_touch_dropdown_menu_force_ios5', 'my_force_ios5' ); function my_force_ios5( $force ) { return true; }
If you think the plugin doesn't work as expected. please post a message in the Support forum, providing the following information: