Skip to content

Instantly share code, notes, and snippets.

@pommiegranit
Created June 30, 2014 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pommiegranit/19e2e8c863eb10c0753a to your computer and use it in GitHub Desktop.
Save pommiegranit/19e2e8c863eb10c0753a to your computer and use it in GitHub Desktop.
Switch on semantic markup options for images in WordPress
<?php
/*
Plugin Name: Semantic
Plugin URI: http://premium.wpmudev.org/blog
Description: Activate Semantic Markup options
Author: Chris Knowles
Version: 1.0
Author URI: http://twitter.com/ChrisKnowles
*/
function activate_semantic_markup() {
$args = array(
'gallery',
'caption'
);
add_theme_support( 'html5', $args );
}
add_action( 'after_setup_theme', 'activate_semantic_markup' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment