Merge pull request #1105 from kevinlisota/html5-captions

use WP HTML5 markup for captions instead of Soil
This commit is contained in:
Ben Word
2014-07-26 00:33:59 -05:00
2 changed files with 8 additions and 0 deletions

View File

@@ -3,6 +3,10 @@
&:extend(.thumbnail all);
}
.wp-caption-text {
&:extend(.thumbnail .caption);
}
// Gallery shortcode
.gallery-row {
padding: (@line-height-computed / 2) 0;

View File

@@ -23,6 +23,10 @@ function roots_setup() {
// http://codex.wordpress.org/Post_Formats
add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'video', 'audio'));
// Add HTML5 markup for captions
// http://codex.wordpress.org/Function_Reference/add_theme_support#HTML5
add_theme_support('html5', array('caption'));
// Tell the TinyMCE editor to use a custom stylesheet
add_editor_style('/assets/css/editor-style.css');
}