Using Dashicons for WordPress Theme and Plugin

This snippet will make WordPress load the dashicons.css file in the site header. That will set up the @font-face declaration allowing you to reference it in your other stylesheets.

add_action( 'wp_enqueue_scripts', 'themename_scripts' );
function themename_scripts() {
    wp_enqueue_style( 'themename-style', get_stylesheet_uri(), array( 'dashicons' ), '1.0' );

source: jameskoter

Artikel terkait:   Wordpress Theme: Clarity - Responsive Theme for Writers

Isi Komentar

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

six × = 54

This site uses Akismet to reduce spam. Learn how your comment data is processed.