UIKit is a popular frontend framework for developing fast, powerful and consistent web interfaces.
This plugin loads UIKit's assets in WordPress.
- uikit.min.css in the
<head>.
- data-attributes.js - a blank file with sample code (commented out) for adding classes and attributes to elements, set to load only if present.
- uikit.min.js and uikit-icons.min.js before
</body>.
The default location for
data-attributes.js is child theme's
js directory.
This is filterable using
wpuikit_data_attributes_path filter hook.
Example usage (goes in child theme's functions.php or a Snippet using the Code Snippets plugin):
`add_filter( 'wpuikit_data_attributes_path', 'sk_my_data_attributes_path' );
/**
- Sets custom path for data-attributes.js to be used by WP UIKit plugin.
- @return string New path.
*/
function sk_my_data_attributes_path() {
return WP_PLUGIN_DIR . '/my-custom-functionality/assets/js/data-attributes.js';
}`
There are no settings for the plugin.
1.0
Initial Release.