Useful UIKIT Code Snippets

Blog

Here are some useful UIKIT code snippets.

The snippets below are mostly sourced from searching online. This page is mostly for my own use so I can have everything in one place. Hopefully it might also come in useful for others. I will try to continually update this list.

Show Loaded UIKIT Components

This will display all loaded UIKIT components in the browser. Useful if you need to check that a component is actually being loaded.

// Shows UIKIT loaded components
add_action('wp_enqueue_scripts', 'custom_print_uikit_array');
function custom_print_uikit_array(){
global $_beans_uikit_enqueued_items;
print '<pre>';
print_r($_beans_uikit_enqueued_items);
print '</pre>';
}

Category: UIKIT

No comment yet, add your voice below!


Add a Comment

Your email address will not be published. Required fields are marked *

Comment *
Name *
Email *
Website