Esempio n. 1
0
/**
 * Loads our special font CSS files.
 *
 * @since Suits 1.0
 */
function suits_custom_header_fonts()
{
    wp_enqueue_style('suits-fonts', suits_fonts_url(), array(), null);
}
Esempio n. 2
0
/**
 * Enqueues scripts and styles for front end.
 *
 * @since Suits 1.0
 *
 * @return void
 */
function suits_scripts_styles()
{
    // Adds JavaScript to pages with the comment form to support sites with
    // threaded comments (when in use).
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    // Loads JavaScript file with functionality specific to Suits.
    wp_enqueue_script('suits-script', get_template_directory_uri() . '/js/functions.js', array('jquery'), '2013-10-20', true);
    // Add Lato font, used in the main stylesheet.
    wp_enqueue_style('suits-fonts', suits_fonts_url(), array(), null);
    // Loads our main stylesheet.
    wp_enqueue_style('suits-style', get_stylesheet_uri(), array(), '2013-10-20');
}