Merge pull request #1105 from kevinlisota/html5-captions
use WP HTML5 markup for captions instead of Soil
This commit is contained in:
@@ -3,6 +3,10 @@
|
|||||||
&:extend(.thumbnail all);
|
&:extend(.thumbnail all);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-caption-text {
|
||||||
|
&:extend(.thumbnail .caption);
|
||||||
|
}
|
||||||
|
|
||||||
// Gallery shortcode
|
// Gallery shortcode
|
||||||
.gallery-row {
|
.gallery-row {
|
||||||
padding: (@line-height-computed / 2) 0;
|
padding: (@line-height-computed / 2) 0;
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ function roots_setup() {
|
|||||||
// http://codex.wordpress.org/Post_Formats
|
// http://codex.wordpress.org/Post_Formats
|
||||||
add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'video', 'audio'));
|
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
|
// Tell the TinyMCE editor to use a custom stylesheet
|
||||||
add_editor_style('/assets/css/editor-style.css');
|
add_editor_style('/assets/css/editor-style.css');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user