Try this:
add_theme_support( 'html5', array( 'gallery', 'caption' ) );
And don’t forget to declare the HTML5 DOCTYPE at the very beginning of header.php
with:
<!DOCTYPE html>
Related Posts:
- How to add CSS class to custom logo?
- Editing the custom background CSS
- How to add default images for custom backgrounds?
- Add colors to existing color palette without replacing it
- What flex-width/height does?
- How do I get gallery thumbnail URL and change the default thumbnail size?
- add_theme_support(‘my-custom-feature’)
- add_theme_support( ‘custom-header’ ) does not add option menu in dashboard
- Remove frameborder attribute from iframes
- how to change WordPress menu markup/classes
- WordPress Genesis Child Theme Filter divs
- How do I attach images to a post without inserting them?
- Integrating Html5Boilerplate’s Builder into a WP Theme
- Is there a filter for enqueue script to strip the type=”text/javascript” property
- using jQuery Cycle by Malsup with WordPress Page and Gallery
- “add_theme_support” for custom footer color?
- Show video as part of the post?
- How to add theme support?
- How to provide support for [gallery] shortcode?
- attachment.php code or tutorial
- Edit footer via customizer
- Theme Development: Starter Content after hook
- Bootstrap card columns change images size
- Can I add multiple arrays within add_theme_support( ‘colors’ )?
- How to add custom meta box under Gallery Settings in the “Edit Gallery” popup
- How to use add_theme_support(‘html5’)?
- Gallery thumbnails very small
- Theme support title tag – how to replace the default WP separator (with a filter)?
- How to show a manageable list of images on a post?
- Adding a gallery to my first theme
- add_theme_support( ‘admin-bar’ ) causes fatal error
- In a Gallery with limited image posts, how do I not limit images on single post?
- Gallery functionality in custom theme
- What is difference between add_theme_support and Theme Customization API?
- New theme HTML5 Support for Search in WordPress 4.4
- Replaceing _custom_background_cb
- Is it possible to customize the layout of Gallery Shortcode?
- How can I add a single image from a gallery into the page header?
- Theme’s featured image option is not showing up
- How important is it to enqueue a theme’s stylesheet?
- Can a theme be built in React?
- Strict Standards Error bootstrap navwalker
- register_sidebar ignores ‘id’ and ‘class’
- Add link option to featured image?
- esc_url not working within add_settings_field callback
- How to hide and content from auto-generated excerpts?
- Which theme foundry has clean coded themes, where code is poetry [closed]
- Same footer on all multisites blogs
- New template, where to place CSS?
- Understanding WordPress(framework?) Web Development
- For best DB performance should I serialize all theme options together or by type?
- Non-Blog Website without Search: are comments.php and search.php in theme still required?
- Custom Widget options in theme
- Include Parent functions.php in Child Theme functions.php
- Redirect to specified page when insufficient permissions?
- Reasons why all thumbnail sizes aren’t working
- Jetpack Comments with fall-back
- Update a custom theme with Subversion?
- wp_script_add_data doesn’t seem to work
- How to override checkbox styles if these inputs have a unique id [closed]
- What are the minimum role/permissions for freelance developer?
- Where am I doing wrong in my theme menu?
- Calculate data and passing to Theme
- Multisite theme path rewrite using .htaccess
- Updating a live theme safely?
- How do I remove inline style in featured image markup?
- Why is my CSS not loading?
- How to find default functions of wordpress
- How to remove ver from stylesheet URL? [duplicate]
- Second menu has the first menu ID
- How to include a file only on dashboard widgets page?
- Change Image Sizes for Mobile Theme
- Dynamically Populating Image/Excerpt/LInks from Pages in WordPress
- Trouble in creating a custom template on twentyeleven theme
- If I remove Category base from my URLs, how difficult will rollback be?
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- Programatically Created Menu not Editable in Dashboard
- How to implement pagination in category.php template
- Embedding CodePen Calorie Script – jquery error
- Is it possible to echo a woocommerce prouct attribute discription?
- WordPress Menu item > Sub menu Class update
- Duplicate child theme incl. design changes
- How can I use a different template file for the blog index’s paginated pages?
- How to customize the colors within a stylesheet using a WordPress setting
- On wordpress, how do i require specific dimensions from user uploads only
- how to create export / import theme options in wordpress without plugin
- WordPress Customization API overwrite LESS variable
- Create image with imagepng() (fails at header)
- Dynamic meta description
- How to Remove Sidebar when get_sidebar() is not get called in page?
- RSS feed url showing page not found. How to solve it?
- Header links also appearing in the footer
- Extending arrays in parent theme without completely overriding the files
- Retina ready for uploaded images which are cropped
- Toolbox theme using printif statement – help needed understanding code block
- Search Results not displaying for multiple word search
- Allow users to edit home page from WordPress (home.php problems)
- WordPress does not know the parametrs i sent to admin post
- Custom Single Page Portfolio Theme [closed]
- Add wrapper for a specific sub-menu