Пример #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  1.0.0
 * @access public
 * @return void
 */
function alpha_add_editor_styles()
{
    $styles = array('css/editor-style' . alpha_get_suffix() . '.css');
    if (apply_filters('alpha_enable_google_fonts', true)) {
        $styles[] = alpha_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  1.0.0
 * @access public
 * @return void
 */
function alpha_rtl_add_data()
{
    wp_style_add_data('alpha-style', 'rtl', 'replace');
    wp_style_add_data('alpha-style', 'suffix', alpha_get_suffix());
}