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
- Theme Activate Hook
- Can I create my own “Recent Posts” widget or customize the existing one?
- Do I actually need to link my theme’s style.css in the theme files
- Customize WordPress>Error Page
- How to remove the Theme Customization Button from the dashboard and themes options page?
- How to make native video player full width?
- get_template_directory_uri() in child theme pointing at child theme
- What are the ADVANTAGES of ORIGINAL wordpress template structure?
- How to remove “prev, next, shortlink” from wp_head()?
- Theme file for all pages that are a child of a specific page
- Different ways to display title
- How to add a 2nd “featured image” to a post?
- What is the difference between WP: template_directory vs TEMPLATEPATH
- Strategy to get post meta for use outside the loop
- Authentication / login mechanism (non wp-admin)
- How to display wp_nav_menu() conditionally only when not on a 404 page?
- Suggestions for creative use of post format feature, or themes that use them well
- Retrieve the template directory URI via global or get_template_directory_uri() every time?
- How to add a section to the menus configuration, offering hard coded items?
- Add a #hash to the links in my custom menu
- Subdirectory install error
- How can i change menu link when page content empty?
- How can I remove specific custom post meta from the “Custom Fields” fieldset?
- How to load different CSS in different Header?
- How can I add an incremental class identifier to my sidebar widgets?
- How to preset a sidebar widget with default content via script?
- add_theme_support using a plugin
- Am I using get_posts wrong?
- Featured Image Size
- the_tags without hyperlinks?
- How to keep theme layout the same when admin gray bar is present?
- Writing Clean WooCommerce Styles
- Wrong path for theme assets
- one time popup after theme activation
- Create a theme by combining a parent and a child theme
- Custom header images won’t appear when set to random
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- retrofiting old blog
- WordPress default theme css units
- how do you create an admin interface in plugin for your theme
- Override parent theme’s include file from child theme
- Implement advanced search
- WordPress add options to theme not displaying
- What is the right way to set up a one-page portfolio theme? [closed]
- Where should I update_options in a theme?
- Is it possible to edit the styling of the admin panel from within a custom theme?
- When trying to override plugin’s function by theme, my filter executes two times, I want it to run only a single time
- Highest number of WordPress Custom Page Templates?
- Difficulty loading jQuery with wp_enqueue_script
- Users table association with users_metadata table appears broken
- Can’t login unless twentyfifteen theme is active
- multisite: global menu containing network site links?
- Injecting a custom sql query into a page/theme
- the_excerpt(); tag not working
- Unable to check if image uploaded by wp_image_editor exists using file_exists function
- Storing the contents from txt file into The_Contents”
- How do you replace content generated by custom fields with custom blocks in Block Editor?
- How to add styles set by user in the customizer
- Use second time navigation.js in underscores [closed]
- Issue with loading mobile specific custom single page layout in mobile
- Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?