예제 #1
0
/**
 * Add custom styles to the WordPress editor to give a better representation of
 * what the front of the site will look like.
 *
 * @since  0.1.0
 * @access public
 * @return void
 */
function foxtrot_add_editor_styles()
{
    $styles = array('css/editor-style' . foxtrot_get_suffix() . '.css');
    if (apply_filters('foxtrot_enable_google_fonts', true)) {
        $styles[] = foxtrot_google_fonts_string('Raleway:400,600|Lato:400,400italic,700', true);
    }
    add_editor_style($styles);
}
예제 #2
0
/**
 * Replace the default theme stylesheet with a RTL version when a RTL
 * language is being used.
 *
 * @since  0.1.0
 * @access public
 * @return void
 */
function foxtrot_rtl_add_data()
{
    wp_style_add_data('foxtrot', 'rtl', 'replace');
    wp_style_add_data('foxtrot', 'suffix', foxtrot_get_suffix());
}