Skip to content

Commit

Permalink
Merge pull request #419 from kovshenin/master
Browse files Browse the repository at this point in the history
_s: Add HTML5 support for WordPress galleries.
  • Loading branch information
obenland committed Feb 27, 2014
2 parents 18928f5 + 9b0ae42 commit 5de96cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ function _s_setup() {
) ) );

// Enable support for HTML5 markup.
add_theme_support( 'html5', array( 'comment-list', 'search-form', 'comment-form', ) );
add_theme_support( 'html5', array(
'comment-list',
'search-form',
'comment-form',
'gallery',
) );
}
endif; // _s_setup
add_action( 'after_setup_theme', '_s_setup' );
Expand Down
3 changes: 2 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,8 @@ a:active {
height: auto;
max-width: 90%;
}
.site-main .gallery dd {
.site-main .gallery dd,
.site-main .gallery figcaption {
margin: 0;
}
.site-main .gallery-columns-4 .gallery-item {
Expand Down

0 comments on commit 5de96cd

Please sign in to comment.