Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [html5]

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

0
votes
0answers
5 views

html5 video looks differently on site and in standard player

so on the site - http://prntscr.com/ls1re1, on Window Media Player - http://prntscr.com/ls1u7o, on one screenshot - http://prntscr.com/ls1uw5 video is embedded by simple html - ...
1
vote
1answer
43 views

How do I use <picture> element instead of <img> tags in WordPress post content having webP support?

I am developing my custom theme and trying to figure out how to modify the default code for WordPress image inserted into the post content, so I could add support for webP format and have it within &...
0
votes
0answers
14 views

Integrate HTML/CSS editor for website visitor

I want to integrate HTML/CSS editor for my WordPress website. So that when a visitor read my blog he/she can practice in that HTML/CSS editor. Check this sample link. How can i do that? Thanks
0
votes
0answers
16 views

How to remove space above header?

How to remove extra space above nav bar in Home tab? HTML <header id="masthead" class="site-header clearfix"> <div id="header-text-nav-container" class="clearfix">...
0
votes
0answers
12 views

How to set maximum size to file

I don't want to show the file which is above the size i fixed. How can i make it in html. <form method="POST" enctype="multipart/form-data" autocomplete="off'" > <h1>Career</h1> &...
1
vote
2answers
35 views

wp_nav_menu returns menu list in ascending order. How can I arrange the menu same as dashboard menu

<?php wp_nav_menu(array( 'theme_location' => 'primary', 'container' => 'ul', 'menu_class'=> 'top-menu' ...
1
vote
0answers
160 views

ACF Wysiwyg Editor Image srcset for responsive images [closed]

I cannot find a way to generate srcset for images added inside Wysiwyg Editor field of Advanced Custom Field (ACF) plugin. Obviously, i know how to generate WordPress image srcset using: ...
1
vote
1answer
18 views

Using HTML 5 Details/Summary Tag

I just wanted to use the details/summary tag on my webpage. Using the summary tag, I'm able to define what my caption looks like. BUT, as soon as I want to edit the page in the visual editor, ...
2
votes
1answer
237 views

Remove frameborder attribute from iframes

The W3C Validator outputs an error because Wordpress adds frameborder="0" to iframes. Also the Validator does not like the allow attribute. I found a similar question for Vimeo Videos: WordPress ...
0
votes
0answers
378 views

Revolution slider video doesn't play

I’ve created a Hero Slider with a VIMEO video, but it doesn’t work. It only worked once but if you reload the page it doesn’t play any more but the first time. If I open Chrome console I see this ...
0
votes
1answer
15 views

Adding <aside> to the WYSIWYG

I'm trying to add the <aside> tag to the WYSIWYG, just like you can add a blockquote. (Basically have a button to wrap the element in an <aside> tag) I can't seem to find out how to add ...
0
votes
0answers
34 views

From php web to wordpress conversion, href changes only in URL

I have converted my PHP dynamic website into WordPress. Whole design is perfect. But unfortunately, when I click on any href link. it just changes in URL but not displaying the related linked page. ...
0
votes
0answers
19 views

Custom Post Type 'Lightbox' only displaying 1st post, no plug-ins

first post, been lurking around here for WP specific answers outside of SO. Trying to create a lightbox using purely HTML/CSS and no plugins. The lightbox will echo the image, title text, and ...
0
votes
1answer
65 views

Preserve indentation, HTML5 shorthand in editor

I know there are other questions about tinyMCE, but this one is a little different. Let's say I create an unordered list that drops the closing li tags. I also have class attributes that I don't want ...
-3
votes
1answer
35 views

Instead of Custom CSS Theme CSS is loading

I have some of HTML list code such as <ul>. after the successfull uploading the <ul> is linked with main stylesheet(theme css). I want to load on my custom css. But its not working ...
0
votes
1answer
27 views

Why is Heading tag Auto applied to Post data? [closed]

why this heading tag is applied to my article, i mean instead of article showing in paragraph its showing in h4 tag because i applied it to date and it auto applied to my content too. echo '<h2>...
0
votes
1answer
569 views

difference between sanitize_email ,FILTER_VALIDATE_EMAIL and input email type in html5

what is the difference between using: HTML 5 <input type="mail"> (it validate user email input without any JavaScript or any other code. 2.PHP filter_var($email, FILTER_SANITIZE_EMAIL); ...
1
vote
1answer
313 views

How to add attributes to the comment form tag?

How can I add attributes to form tag? Below is my code but it does not add the attributes I need: $args = array( 'title_reply'=>'', 'comment_notes_before' => '', 'logged_in_as' =>...
0
votes
1answer
2k views

how to change Wordpress menu markup/classes

I’m building my first website on WordPress, and i wanted to ask is someone know how to change markup in Wordpress menu. Basically I want the markup of my WordPress navigation to match what I’ve done ...
2
votes
0answers
153 views

HTML5 theme support for comments + form 'novalidate' - how to handle it properly?

INTRODUCTION My research is based on following assumptions: WordPress version supports HTML5 Go to any admin page and inspect the resulting document. It should start with <!DOCTYPE html>. ...
0
votes
2answers
1k views

Make post_content and other custom fields required

What's the best way to set the required atribute on html forms in wordpress, for instance I would like post-content to be required, so this code need to be changed: <textarea class="wp-editor-area"...
-1
votes
1answer
7k views

How to Convert Shortcode into a link?

Here is my shortcode: [contact-form-7 id="1735" title="Contact form 1"] To execute it, I need it in links (Ex.http://html.com). How to convert this short code to link? Is it possible?
0
votes
3answers
74 views

How to setup Landing HTML5 page in WordPress site

I have setup WordPress-oriented hosting on HostGator and I will be building a WordPress Site soon. At this point, it is a generic 'Hello World' default page. In the meantime, I found a fantastic HTML5 ...
5
votes
2answers
473 views

Why does `add_theme_support( 'html5', array( 'comment-form' )` disable client side validation?

In order to use HTML5 markup for the comment forms, I add the following code snippet to functions.php: add_theme_support( 'html5', array( 'comment-form' ) ); However, it disables client side ...
0
votes
0answers
1k views

Ajax filter to filter post with date, price and category

I create a Ajax post filter for tablet custom post type. And tying to filter posts with min+max price inputs & with 3 things are follwing. 1: Date Post Date = ASC or DESC 2: Custom field with ...
1
vote
0answers
84 views

On screen music/audio player that grabs track URL [closed]

I have a question about a setup I am trying to achieve. I currently am setting up a site with the purpose to buy and sell instrumentals. I have setup the desired instrumental list layout which you can ...
1
vote
1answer
167 views

Received nothing after executing AJAX post function

What I'm trying to achieve is to enable users to filter posts based on the selection of the checkboxes located on the sidebar. I've created a custom post type called projects and a couple of ...
-1
votes
1answer
50 views

Run Custom HTML5

How do I upload and run a reveal.js presentation on WordPress? I have have been searching a lot to find the steps but I don't even know where to start. Thanks
0
votes
0answers
20 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 ...
3
votes
1answer
104 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 ...
5
votes
2answers
2k 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
312 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
110 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
2k 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
72 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() ) { ...
16
votes
1answer
703 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
75 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 ...
9
votes
1answer
9k 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
117 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
33 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
94 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
votes
1answer
860 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
68 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
574 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
479 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
3answers
3k 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
132 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
5answers
5k 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
217 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
143 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-...