From 43f476779321f30c37ed57c503a36c706ba5293c Mon Sep 17 00:00:00 2001 From: AdsonCicilioti Date: Thu, 8 Jan 2015 01:45:56 -0200 Subject: [PATCH] Enable HTML5 Suport Add HTML5 searchform.php and enable HTML5 theme support for the comment form filds (email and URL), optimizing mobile keyboard experience. --- functions.php | 7 ++++++- searchform.php | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 searchform.php diff --git a/functions.php b/functions.php index 9a4bf978b..2916673a5 100644 --- a/functions.php +++ b/functions.php @@ -244,6 +244,11 @@ function bones_fonts() { add_action('wp_enqueue_scripts', 'bones_fonts'); - +// Enable support for HTML5 markup. + add_theme_support( 'html5', array( + 'comment-list', + 'search-form', + 'comment-form' + ) ); /* DON'T DELETE THIS CLOSING TAG */ ?> diff --git a/searchform.php b/searchform.php new file mode 100644 index 000000000..69bcec066 --- /dev/null +++ b/searchform.php @@ -0,0 +1,8 @@ + \ No newline at end of file