diff --git a/functions.php b/functions.php index ed3b55d..34909bd 100755 --- a/functions.php +++ b/functions.php @@ -9,14 +9,14 @@ if ( ! function_exists( 'forward_google_fonts' ) ) : /** * Adds google font support. - * + * */ function forward_google_fonts() { $query_args = array( 'family' => 'Source+Sans+Pro:200,300,400,600', // Here's an example for changing fonts. - // + // // 'family' => 'Open+Sans:400,700|Oswald:700', // 'subset' => 'latin,latin-ext', ); @@ -160,11 +160,15 @@ function forward_scripts() { endif; // forward_scripts add_action( 'wp_enqueue_scripts', 'forward_scripts' ); - /** - * Implement the Custom Header feature. + * Add stylesheet to the visual editor. */ -//require get_template_directory() . '/inc/custom-header.php'; +function forward_add_editor_styles() { + + add_editor_style( get_stylesheet_uri() ); + +} +add_action( 'init', 'forward_add_editor_styles' ); /** * Custom template tags for this theme. diff --git a/readme.txt b/readme.txt index ebbe3b7..e0c370e 100644 --- a/readme.txt +++ b/readme.txt @@ -2,8 +2,8 @@ Contributors: Drawbackwards Tags: black, blue, gray, white, light, two-columns, left-sidebar, responsive-layout, custom-menu, editor-style, featured-images, microformats, post-formats, sticky-post, threaded-comments, translation-ready Requires at least: 4.0 -Tested up to: 4.2.2 -Stable tag: 1.0.1 +Tested up to: 4.3.1 +Stable tag: 1.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -41,4 +41,4 @@ Custom web fonts are enqueued using https://www.google.com/fonts * Autoprefixer https://github.com/postcss/autoprefixer-core * Combine Media Queries https://www.npmjs.com/package/gulp-combine-media-queries * Pixrem https://www.npmjs.com/package/gulp-pixrem -* Normalize https://necolas.github.io/normalize.css/ \ No newline at end of file +* Normalize https://necolas.github.io/normalize.css/