For some functions WordPress needs to be specifically told to conform to the html5 markup. This is done with `add_theme_support`.

learn more… | top users | synonyms

-1
votes
2answers
22 views

How to register HTML data-accordion as an allowed attribute in KSES [duplicate]

Does anyone know how to register data-accordion as an HTML attribute in KSES? I've tried to use the codex but is not specific enough to tell how this is done. Thank you
0
votes
0answers
18 views

How to register data-accordion as an allowed attribute [duplicate]

Continuing my now protected question from earlier at How to retain HTML5 Attributes on Markup: How do you "register data-accordion as an allowed attribute" @Rup ? I looked at the Codex and it is not ...
2
votes
0answers
52 views

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 ...
3
votes
2answers
122 views

How to change the markup Wordpress inserts for post images

I am developing a theme with Underscores for WordPress. When the user adds an image using the TinyMCE editor the following code is inserted: <img class="wp-image-45 size-full aligncenter" src="...
0
votes
1answer
19 views

Meta Tag “description”

I have troubles using meta tag within Wordpress post-making environment. I wish to give it for first paragraph of each article and in the searching it will show only description and image thumbnail. ...
0
votes
1answer
31 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 ...
1
vote
1answer
114 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
25 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() ) { ...
13
votes
1answer
219 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="..." data-my_setting="..."...
0
votes
1answer
35 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 ...
2
votes
1answer
368 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 ...
0
votes
1answer
40 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 ...
-1
votes
1answer
31 views

How can i get tag without />?

I see that wordpress make tag meta, link, style, img, ecc.ecc. like theese: <img /> <meta /> <link /> <style /> with the /> at the end of the tag. How can i get tags like ...
1
vote
0answers
31 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 ...
0
votes
1answer
240 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
53 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
88 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 ...
4
votes
1answer
251 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
638 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
votes
1answer
55 views

Add Javascript/Html into a WordPress

I have done this javascript in order to get email opt-in form when the video ends. What I am looking for now is to bring this code to a wordpress which I am not really familiar with the whole WP codex ...
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
2answers
116 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 I'...
1
vote
1answer
89 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 re-...
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 ...
1
vote
0answers
874 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. <div>...
0
votes
1answer
66 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 ...
2
votes
1answer
579 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) && ($...
0
votes
1answer
90 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
0answers
101 views

Embed Captivate HTML5 into WP

I would like to embed HTML5 interactions I create in Captivate into my WordPress. I don't need the data to report to an LRS; I just need the learner to be able to interact with it. An iframe is not ...
0
votes
1answer
612 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
0answers
212 views

Empty paragraphs around figure and figcaption tags when using markdown

I'm using WP 3.8 and Markdown on Save Improved plugin and have following code for outputing HTML5 tags when inserting images via Media Uploader: function html5_insert_image($html, $id, $caption, $...
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
0answers
39 views

Add html plugin into wordpress

I purchased an HTML5 Video & Youtube background plugin, I want to use it with WordPress. http://codecanyon.net/item/html5-video-youtube-background/1555660 Any Suggestions? Maybe create a ...
0
votes
2answers
407 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, .../wp-includes/js/mediaelement/wp-...
0
votes
1answer
231 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" src="//assets.pinterest.com/images/PinExt....
1
vote
0answers
423 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" src="//assets.pinterest....
-3
votes
2answers
405 views

Datetime on time tag wordpress puts it outside the tag

I want to use a time tag with the datetime attribute in it... I tried this in functions.php: <time class="time" datetime='. the_date('d-m-Y') . '>%3$s '.get_the_time( $d, $post ).'</time>'...
0
votes
0answers
38 views

Wordpress blog not loading articles

I have set up a static website with basic information pages such that all of the static pages fall into one level and in that directory there is directory "blog" which contains a Wordpress 3.5.1 ...
0
votes
0answers
297 views

how to retrieve subcategory related to category in edit page from view page by using javascript

I am doing a basic product page by using JavaScript,php and html. I retrieve the category related subcategory drop down list from view page .but my subcategory is not change according my category .I ...
0
votes
1answer
87 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 */ ?> <?...
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 class="some_class"...
1
vote
1answer
117 views

Using Schema with `the_excerpt`

I'm currently developing a WordPress site and want to use Schema, I have been some what successful so far but have now hit a stone wall. I want to use: itemprop="description" to the <p>...
1
vote
1answer
995 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. ...
0
votes
1answer
52 views

Does post-meta belong in header?

The template I used as a start for my own design places the metadata inside the header tag of the single-post.php. Is that a correct use of header, or should there only be h-tags in there? What about ...
4
votes
1answer
130 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 <...
0
votes
1answer
288 views

Practical Solutions to HTML5 Video on WordPress

I was directed here from Stack Overflow -- We work with clients who have WordPress sites and one thing we keep struggling with is implementing HTML5 video across all browsers and devices in the ...
1
vote
2answers
417 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 style="width:609px;...
0
votes
1answer
471 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 grid-left-0"&...
1
vote
2answers
416 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 ...