The tag has no usage guidance.

learn more… | top users | synonyms

12
votes
6answers
3k views

How do I turn off self-closing tags for markup in WordPress (for HTML5, or HTML4, for example)?

I want to use HTML5 in my WordPress theme, how do I turn off wptexturize? I don't mind WP adding breaks, but I want them to be <br> and not <br />. How do I get control over how those ...
12
votes
5answers
4k views

Can WordPress be made to support websockets?

Websockets are a cool, cutting-edge technology wrapped into HTML5. Basically, you can open a websocket to enable persistent, 2-way communication with a web server. The client (user interface) can ...
12
votes
1answer
171 views

wp.media.view.ImageDetails - Save settings as HTML5 data-* attributes for image

What I finally want to achieve are extra settings added to the Image Details box, that will be stored in the image <img> tag as data-* attributes Example: <img src="..." ...
4
votes
1answer
124 views

Output in XHTML or HTML 5 for plugins?

I'm currently writing a plugin that displays some images - possibly with captions. So, I was wondering whether to use XHTML (<div>s and <span>s) or HTML 5 (<figure> and ...
3
votes
1answer
2k views

Writing a cache manifest file for a WordPress blog (app cache, offline web applications)

I'm wondering if anyone has implemented Offline Web Applications from HTML5 in a WordPress blog? When you write a manifest file, all files must be accounted for, thought you can specify the wildcard ...
3
votes
1answer
212 views

Display message once per session to users with a specific role

I need to display a message to only users with a specific role. The message should appear either as soon as the user logs in or if they re-open their browser after having closed it when logged in to ...
2
votes
1answer
559 views

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) && ...
2
votes
1answer
140 views

TinyMCE editor is breaking my beautiful HTML

This is pretty much an exact duplicate of: How to make Wordpress and TinyMCE accept <a> tags wrapping block-level elements as allowed in HTML5? and HTML5, WordPress and Tiny MCE issue - wrapping ...
2
votes
2answers
409 views

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 ...
2
votes
1answer
2k views

HTML5, WordPress and Tiny MCE issue - wrapping anchor tag around div results in funky output

So I'm using HTML5 on a website and am trying to wrap a div in an anchor tag, which is supposedly acceptable in HTML5 websites. But when I do this... <a href="#mylink"><div ...
2
votes
1answer
356 views

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 ...
1
vote
2answers
413 views

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 ...
1
vote
3answers
1k views

Multiple social buttons with a fast loading? [closed]

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 ...
1
vote
3answers
875 views

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 ...
1
vote
1answer
81 views

Save re-arranged draggable post items to wordpress database

So i've followed the clearly documented pages for the packery and the draggabilly plugins to allow for a customizable grid and looked at how localStorage can be used to remember/store data of the ...
1
vote
1answer
961 views

Add htmlentities and/or shortcode into data-attributes

I realize this is crazy but, I built up a filtered gallery with quicksand and it pulls in a larger image, title and description when you click the smaller image it shows the data-img in a larger form. ...
1
vote
1answer
47 views

How to output images as figure/figcaption

I'm trying to figure out how to output the WP images from the media uploader as Figure/Figcaption. Using the WP Twenty Sixteen theme the output is figure/figurecaption by default, and searching for ...
1
vote
1answer
458 views

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 ...
1
vote
2answers
404 views

Layer post title on top of image Wordpress featured thumbnail image

I'm currently trying to layer a post title on top of the posts featured image but all I see at the moment is ");">" instead of the image. The code I'm using is as follows: <div ...
1
vote
3answers
5k views

Protecting HTML5 video [closed]

I shall explain my situation as best I can so you can see where i'm coming from. I'm working on a wordpress site for a sports team, there are loads of teams. We want to put coaching sessions on our ...
1
vote
2answers
1k views

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 ...
1
vote
1answer
18 views

Function causing the loop display posting more (empty)

By using the function: add_action( 'pre_get_posts', 'add_custom_post_types_to_loop' ); function add_custom_post_types_to_loop( $query ) { if ( is_home() && $query->is_main_query() ) { ...
1
vote
0answers
27 views

wordpress 4.4 self hosted video (html5) doesn't show

I was developing WP theme on my localhost (version 4.3). The client wanted to be able to add self-hosted videos. So I wrote shortcode and implemented it in Visual Composer. Basically, this shortcode ...
1
vote
0answers
824 views

How to make Wordpress and TinyMCE accept <a> tags wrapping block-level elements as allowed in HTML5?

Starting with version 5 the HTML standard allows <a> tags wrap block-level elements. On a specific page I need to wrap a heading and an image with an <a> tag: Some intro text. ...
1
vote
0answers
408 views

Add ALT attribute to Pin It Button image to pass HTML5 validation

I am using the Pinterest "Pin It" Button plugin so I can add to my posts/images. However, part of the Pin In button uses this code: <img border="0" class="pib-count-img" ...
0
votes
1answer
85 views

Using _e() on text inside video tags prints that text, instead of only showing when html5 <video> element is not supported

I'm creating a wordpress theme in which I'm creating a shortcode for a video. Part of the output of this shortcode is something like this: $result .= '<video class="fullWidth" width="auto" ...
0
votes
4answers
2k views

Can a shortcode included in post content add styles to the <head>?

I have a shortcode that iterates through a list of custom post types and, as part of displaying them, creates a block. In HTML5, it is illegal to have a style block outside the header (maybe in other ...
0
votes
1answer
765 views

audio link produces black box

In chrome and firefox (and maybe others) the audio link does not render a media controller. E.g. [audio http://example.com/wp/wp-content/uploads/2011/09/file.mp3] In Chrome, view page source show ...
0
votes
1answer
1k views

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) recognise JavaScript without it. I am building an HTML5 site and want my script output to be consistent. However, ...
0
votes
2answers
112 views

WordPress HTML5 Gallery Support - Convert HTML4 -> HTML5

As of WordPress 3.9, WordPress generates HTML5 Galleries if HTML5 is supported in the theme: add_theme_support( 'html5' ); Originally in my theme development I did not declare HTML5 support and ...
0
votes
1answer
5k views

Convert HTML to HTML 5? [closed]

I have a website which is in XHTML (wordpress coded). I need to convert it into HTML 5. I just started learning about HTML 5 tags like section, nav, footer etc. While finding deep into it, I came ...
0
votes
2answers
2k views

How to allow YouTube object embed in Wordpress 3+?

I admin a Wordpress blog with a few dozens of users. Since we upgraded to version 3.1+ my users can't insert the YouTube embed tags into a post ( wordpress or TinyMCE removes them ). When I'm ...
0
votes
1answer
144 views

Map clashing with WP - suggestions on fix? [closed]

I've followed this tutorial - http://www.netzgesta.de/mapper/ to create a state map of USA which you can see here - http://www.teamworksdesign.com/clients/neurosign/contact/alabama/ I downloaded the ...
0
votes
1answer
31 views

Soundcloud Smart Player

I have a lyrics website on wordpress with thousands of lyrics, and I am looking to embed a player on each one. But I have realised it would be tedious and time consuming to do that. How would I ...
0
votes
1answer
573 views

Genesis loading of html5shiv for IE8

Genesis Framework 2 has built-in support for loading the html5shiv.js, with the genesis_html5_ie_fix function (/lib/js/load-scripts.php). I post the function below. It supposed to print a conditional ...
0
votes
1answer
2k views

Embed HTML5 files/subfolders in post?

I am attempting to publish an Adobe Captivate project to a WordPress blog. The .swf file is easy enough to handle, but the HTML5 version is giving me problems. The way that Captivate outputs HTML5 is ...
0
votes
2answers
396 views

Stylesheet being loaded outside of <head>

Wordpress (3.6) is loading two stylesheets (mediaelement-css, .../wp-includes/js/mediaelement/mediaelementplayer.min.css?ver=2.13.0 and wp-mediaelement-css, ...
0
votes
1answer
230 views

Remove border attribute from Pin It Button image to pass HTML5 validation [closed]

I am using the Pinterest "Pin It" Button plugin http://pinterestplugin.com which uses this code on my blog pages: <img border="0" class="pib-count-img" ...
0
votes
1answer
85 views

Plugins not showing up for custom template

I'm customizing the index.php page. I've customized my header.php and footer.php and created the styles for both things. My main index.php page has: <?php /* Template Name: Main */ ?> ...
0
votes
1answer
458 views

Equal height sections in custom Headway Theme

I have this piece of code: <section class="row row-3"> <section class="column column-1 grid-width-19 grid-left-0"> <section class="column column-2 grid-width-5 ...
0
votes
1answer
156 views

Is there a Image Gallery which will load all my posted Images like twitter's image grid?

Many of my wordpress posts have images in them for my personal blog. I have been searching for a good way to display all of the images from all of the posts in a grid layout on a page. Similar to the ...
0
votes
1answer
25 views

New theme HTML5 Support for Search in WordPress 4.4

I'm kind of new to creating my own themes with WordPress 4.x so I hope it's not too boring. In search.php I'm using this code: get_search_form () Also, I got this code in searchform.php <form ...
0
votes
1answer
33 views

HTML5/CSS3 Polyfill for wp-login.php

As a result of my customizing of wp-login.php, using HTML5 (e.g. placeholders etc.) and CSS3 (e.g. various selectors), I would like to polyfill for older browsers. Does WordPress, by default, have ...
0
votes
1answer
154 views

How to make this splash page responsive

I need to create a simple responsive splash page where there is a full background image with a logo, text and CTA on the top half of the image. The Mobile_View image is how the page looks when ...
0
votes
1answer
45 views

Trying to turn all of my posts into a soundcloud playlist and can't figure out where to start

I have a music blog, and each post contains a soundcloud player. I am designing the site, and would like to find a way to turn all of the posts into a "radio station" or playlist of sorts. Whereas ...
0
votes
1answer
71 views

Blog post date not in format required by schema.org

I'm trying to display blog posts using the BlogPosting schema from Schema.org, but I am having difficulty getting the date to display in the required format. Currently, the ...
0
votes
4answers
2k views

Get YouTube video id from url in a custom field

Here's the scenario, I have a site with thousands of YouTube video posts which are stored in a custom field 'video_url' which is being used in a custom video player. The custom player I'm using now ...
0
votes
1answer
29 views

what Format is really need for Video Players?

in all new video player plugins for word press there are some various field for various formats !! like : FLV , Mp4 , OGV , Webm , Mp4 for mobile as my Web host have limit of Size i really confused ...
0
votes
1answer
54 views

How to get rid of extra Untitled Article in html5 document outline when using new WP_Query?

Here is a simplified version of the code I'm using on a static homepage template made for a child theme of TwentyTwelve. I simplified some of the divs used for styling and just focused on the problem ...
0
votes
1answer
65 views

Print all inline styles to head

Currently working on a project here http://palanquin.shrimp-works.com. When I try to validate what I have done so far, using http://validator.w3.org/, I get lots of this error Element style not ...