Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Load stylesheets, and load dashicons as a dependency
function hr_load_your_css(){
$css_link = get_stylesheet_directory_uri() . '/assets/css/style.min.css';
$css_file = get_stylesheet_directory() . '/assets/css/style.min.css';
wp_enqueue_style('theme-style', $css_link, array('dashicons'), filemtime($css_file), 'all');
add_action('wp_enqueue_scripts', 'hr_load_your_css');
<a href="<?php echo esc_url( $resource_link ); ?>"><i class="dashicons <?php the_hr_link_dashicon($resource_link); ?>"></i> View document</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.