Skip to main content

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`.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

How to add user images on a world globe?

I need a user images on world globe like this design. I already use this code but can't able to add user images here. Is there any way to add images on this globe or any one have code similar to my ...
Hayder Hossain's user avatar
0 votes
1 answer
322 views

How to add the sidebar to all the pages except the home page? [closed]

I am creating a theme and I need some idea to create a below structure on my all the page except on the home page. I know how to create a menu, sidebar, footer, and call dynamically on the page. My ...
user9437856's user avatar
0 votes
1 answer
213 views

how to check if an element in an html file exists in another html file? [closed]

Imagine that I have an HTML file as one of my WordPress blog pages (let's call it page B). I want to write an if condition inside a tag on page B to check if a specific element exists on another web ...
Shima Masaeli's user avatar
0 votes
1 answer
2k views

I have a background-image in css file but don't show in site.how to fix this prblm. i sent screenshot. thx

lock at the pic dont show the background-image. i try this but not working.... background-image: url("/assets/Logo.png"); how can i fix this prblm. plz give me the solution. Thx.
Ali hussain's user avatar
0 votes
1 answer
6k views

Adding custom attributes to input fields in Contact Form 7 tags

I want to open camera and save the picture taken. I don't want to upload saved picture. This can be done using the HTML5 - attribute: How can I add this capture attribute to my input tag in Contact ...
NaMoSa Tube's user avatar
0 votes
0 answers
93 views

Modify [caption] shortcode so <figure> and <figcaption> are not used?

I would like to use the original (non-html5) version of the [caption] shortcode. That is, I would like to edit the output so that figure and figcaption are not used as they are causing problems. How ...
Dave's user avatar
  • 1
3 votes
1 answer
5k 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 &...
Kiki FIstrek Novi's user avatar
1 vote
2 answers
2k 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' ...
user avatar
1 vote
0 answers
861 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: ...
Vatsh Patel's user avatar
2 votes
1 answer
543 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, ...
SirKrypto's user avatar
2 votes
1 answer
2k 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 ...
Benjamin Schlegel's user avatar
0 votes
1 answer
247 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 ...
Fredy31's user avatar
  • 868
0 votes
0 answers
122 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. ...
stefan's user avatar
  • 1
0 votes
1 answer
181 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 ...
3x5's user avatar
  • 133
-3 votes
1 answer
46 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 ...
Abhishek K R's user avatar
0 votes
1 answer
28 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>...
TheDose's user avatar
  • 198
0 votes
1 answer
3k 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); ...
IBRAHIM EZZAT's user avatar
1 vote
1 answer
905 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' =>...
Run's user avatar
  • 331
2 votes
1 answer
7k 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 ...
Eiwa's user avatar
  • 23
5 votes
0 answers
450 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>. ...
Frank P. Walentynowicz's user avatar
0 votes
2 answers
7k 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"...
TorryVic's user avatar
  • 153
-1 votes
1 answer
32k 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?
Jeevan RL's user avatar
0 votes
3 answers
289 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 ...
marcheenek's user avatar
5 votes
2 answers
2k 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 ...
kimbaudi's user avatar
  • 151
1 vote
0 answers
138 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 ...
Tyree Brown's user avatar
1 vote
1 answer
281 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 ...
daniel lee's user avatar
-1 votes
1 answer
63 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
Lumo5's user avatar
  • 127
0 votes
0 answers
22 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 ...
user avatar
3 votes
1 answer
133 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 ...
user avatar
6 votes
2 answers
4k 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="...
Simon's user avatar
  • 77
0 votes
1 answer
483 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. ...
Karel's user avatar
  • 1
0 votes
1 answer
136 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 ...
lowmatic's user avatar
1 vote
1 answer
3k 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 ...
Kevin Mamaqi's user avatar
1 vote
1 answer
90 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() ) { ...
lucasbento's user avatar
20 votes
1 answer
1k 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="..."...
Kaspar Lee's user avatar
0 votes
1 answer
149 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 ...
Clarus Dignus's user avatar
9 votes
2 answers
15k 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 ...
Dominic P's user avatar
  • 685
0 votes
1 answer
225 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 ...
Stanley Umeanozie's user avatar
-1 votes
1 answer
40 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 ...
user3173022's user avatar
1 vote
0 answers
121 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 ...
Артур Пипченко's user avatar
-1 votes
1 answer
1k 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 ...
mik9090's user avatar
0 votes
1 answer
81 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 ...
pixelgirrrl's user avatar
1 vote
1 answer
1k 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 ...
b00kgrrl's user avatar
  • 113
4 votes
1 answer
688 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 ...
user1462's user avatar
  • 1,294
2 votes
3 answers
7k 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 (...
Adson Cicilioti's user avatar
-1 votes
1 answer
169 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 ...
Nuno Sarmento's user avatar
0 votes
5 answers
9k 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 ...
Chozen's user avatar
  • 163
0 votes
2 answers
339 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'...
Howdy_McGee's user avatar
  • 20.7k
1 vote
1 answer
193 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-...
sledgeweight's user avatar
0 votes
1 answer
38 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 ...
Arioman's user avatar
  • 153