Making WordPress.org


Ignore:
Timestamp:
03/30/2018 07:18:06 PM (9 years ago)
Author:
iandunn
Message:

WP15: Add design assets.

Props melchoyce

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wp15.wordpress.net/public_html/content/themes/twentyseventeen-wp15/functions.php

    r6942 r6979  
    1212 */
    1313function enqueue_scripts() {
    14         wp_enqueue_style(
     14        wp_register_style(
     15                'source-sans-pro',
     16                'https://fonts.googleapis.com/css?family=Crete+Round|Source+Sans+Pro:400,400i,600,700&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese'
     17        );
     18
     19        wp_register_style(
    1520                'twentyseventeen-parent-style',
    1621                get_template_directory_uri() . '/style.css'
     22        );
     23
     24        wp_enqueue_style(
     25                'twentyseventeen-style',
     26                get_stylesheet_directory_uri() . '/style.css',
     27                array( 'twentyseventeen-parent-style', 'source-sans-pro' ),
     28                filemtime( __DIR__ . '/style.css' )
    1729        );
    1830
Note: See TracChangeset for help on using the changeset viewer.