diff --git a/assets/scss/barebones.scss b/assets/scss/barebones.scss index 2ed9ef2..df243bd 100755 --- a/assets/scss/barebones.scss +++ b/assets/scss/barebones.scss @@ -14,7 +14,6 @@ Author: Benchmark @import 'vendor/simple-grid/simple-grid'; -@import 'base/normalise'; @import 'base/shared'; @import 'base/images'; @import 'base/forms'; @@ -23,4 +22,4 @@ Author: Benchmark @import 'base/links'; @import 'modules/nav'; -@import 'modules/buttons'; \ No newline at end of file +@import 'modules/buttons'; diff --git a/assets/scss/utilities/_a11y.scss b/assets/scss/utilities/_a11y.scss index 5a6ee02..d985864 100644 --- a/assets/scss/utilities/_a11y.scss +++ b/assets/scss/utilities/_a11y.scss @@ -1,4 +1,7 @@ .sr-only { font-size: 0; + height: 0; + overflow: hidden; position: absolute; -} \ No newline at end of file + width: 0; +} diff --git a/functions.php b/functions.php index dba6725..5192c57 100644 --- a/functions.php +++ b/functions.php @@ -42,10 +42,8 @@ add_filter( 'post_comments_feed_link', 'barebones_remove_comments_rss' ); function barebones_scripts() { /* * For IE8 to play nice, you'll need to include your CSS here, for example: - * - * wp_enqueue_style( 'fonts', '//fonts.googleapis.com/css?family=Font+Family' ); - * wp_enqueue_style( 'icons', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', null, '4.3.0' ); */ + // wp_enqueue_style( 'fonts', '//fonts.googleapis.com/css?family=Font+Family' ); wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js', false, '1.11.2', true ); wp_enqueue_script( 'jquery' ); @@ -133,3 +131,13 @@ function barebones_tiny_mce_before_init( $settings ) { } add_filter( 'tiny_mce_before_init', 'barebones_tiny_mce_before_init' ); + + +/** + * Get image URL for whatever size. + */ + +function wp_get_attachment_image_url( $id, $size = 'full', $attrs = []) { + $image = wp_get_attachment_image_src( $id, $size, $attrs ); + return $image[0]; +}