Articles of html5

How to allow <video> html5 tag in WordPress

Currently I am running a WordPress MU blog using the Unfiltered MU plugin. However, when I try to insert an HTML5 tag, it gets stripped away. I believe it may be the WYSIWYG editor cleaning the code. Where can I change settings to allow ? Thanks

Multiple social buttons with a fast loading?

I have pages like this with a lot of social buttons. A lot means more than 50 buttons because each posts on that page has its own buttons. So maybe I’ll make the page smaller, with less posts but this is not the main reason and not what I am looking for. I want to […]

Is there a filter for enqueue script to strip the type=“text/javascript” property

script type=”text/javascript” is optional in HTML5 and all browsers (even old ones) recognize JavaScript without it. I am building an HTML5 site and want my script output to be consistent. However, scripts that use the WordPress enqueue function are printed withtype=”text/javascript”. CSS is also printed with type=”text/css”, which is also not needed. I can’t find […]

Integrating Html5Boilerplate's Builder into a WP Theme

So Im planning to use Html5Boilerplate as a base to build a new WP Theme on. The Boilerplate comes with the Builder, a handy Tool for minifiying, concatenating and compressing ones Website for obvious reasons: speed/performance-gain, easier mobile access and so on. I would very much like to use this feature with my theme. Problem: […]

WordPress Genesis Child Theme Filter divs

I’m trying to html5ize a Genesis child theme. So far I’ve figured out how to replace the Doctype via hook but am having trouble figuring out how i can change the divs to sections and articles without touching the core files. Can anyone point me in the right direction?

Get menu links only

I’m creating a template in HTML5. On navigatiom menu i need to implement something like this <nav> <a href=”url1″>url1</a> <a href=”url1″>url2</a> <a href=”url1″>url3</a> <a href=”url1″>url4</a> … <a href=”urln”>urln</a> </nav> If i use ‘wp_nav_menu’, it prints <div><ul><li><a> when i need just <a> There is a way to get that? Thanks!

Comment form problem with comment_author_url and HTML5 input placeholders

I’m using HTML5 on two sites running two different versions of WordPress. They both exhibit the same behaviour and I would like some help with fixing this please. <label for=”url”>Website</label> <input type=”url” name=”url” id=”url” value=”<?php echo esc_attr($comment_author_url); ?>” placeholder=”Enter Website Address (optional)” pattern=”https?://.+”> In testing, we have identified a problem with comment_author_url that occurs when […]

How to Remove novalidate attribute from comment form

I’m using html5 support for input formats and custom comment form fields with this code: <?php $commenter = wp_get_current_commenter(); $args = wp_parse_args( $args ); if ( ! isset( $args[‘format’] ) ) $args[‘format’] = current_theme_supports( ‘html5’, ‘comment-form’ ) ? ‘html5’ : ‘xhtml’; $req = get_option( ‘require_name_email’ ); $aria_req = ( $req ? ” aria-required=’true'” : ” […]

How do I enable HTML5 prefetching on this page?

Site example: http://www.ianstuart-bride.com I currently have this bit of code in header.php, but it does not work as desired: <?php if (is_archive() && ($paged > 1) && ($paged < $wp_query->max_num_pages)) { ?> <link rel=”prefetch” href=”<?php echo get_next_posts_page_link(); ?>”> <link rel=”prerender” href=”<?php echo get_next_posts_page_link(); ?>”> <?php } elseif (is_singular()) { ?> <link rel=”prefetch” href=”<?php bloginfo(‘home’); ?>”> […]

How to retain HTML5 Attributes on Markup

I have a page with certain html markup and element attributes as shown in the snippit below: <ul class=”accordion” data-accordion=””> When I edit the page as a user with the WP Administrator Role the <ul> remains intact upon page update. Perfect. Yet when a user with WP Editor Role edits the page, the ul tag […]