You can add HTML5 support which will be very useful. I will consider that you won’t be testing your new wordpress theme on all the real devices due to which you should add HTML5 support in functions.php. You can frame the code as below:
function customTheme_setup() {
// HTML support
add_theme_support( 'html5', array( 'search-form' ) );
// Thumbnails support
add_theme_support('post-thumbnails');
}
add_action('after_setup_theme', 'customTheme_setup');
Please let me know, if you have any query.
Related Posts:
- How to remove search bar from a wordpress theme? [closed]
- Formatting ?
- Remove frameborder attribute from iframes
- wp_enqueue_scripts not called on search page?
- Which theme foundry has clean coded themes, where code is poetry [closed]
- how to change WordPress menu markup/classes
- How can I customize wp_footer, where is the code that controls what this function does?
- WordPress Genesis Child Theme Filter divs
- Don’t understand why theming is so strange and twisted [closed]
- Integrating Html5Boilerplate’s Builder into a WP Theme
- Is there a filter for enqueue script to strip the type=”text/javascript” property
- Implement advanced search
- get_page_template returning nothing
- Why is the post type on the search result page random?
- Non-Blog Website without Search: are comments.php and search.php in theme still required?
- Custom WordPress Theme – Search not working on posts
- WordPress Filtering Custom Post Type by Metadata and Search Heirachy
- How can I optimize this code? [closed]
- How to escape html generate by a loop
- WordPress HTML5 Gallery Support – Convert HTML4 -> HTML5
- Where do you add code in custom fuctions so it works on a specific page?
- Post and page content not displaying in search results
- How to code custom special page
- $_POSTing to and modifying the WP search results page
- Custom theme won’t use search.php
- Search Form Not Working
- altering search terms
- Custom search template is showing 404 when adding query string
- Woocommerce AJAX filters option loading spiner – problem on mobile device
- Why not works the search.php file?
- restrain filter on get_the_excerpt to queried item in stead of current post
- Is it possible to show sort page excerpt in search.php
- WordPress Custom Search By Alphabet and order by asc and sesc
- Incorrect search results in search.php – issue triggered by using `define(‘BodyID’, ‘search’); the_post();` in search.php
- The normal loop with different styles doesn’t work in search.php
- Search Results not displaying for multiple word search
- custom theme’s search not working
- Website Developer has gone missing! How to gain full access of your code from a WordPress website?
- Menu items description? Custom Walker for wp_nav_menu()
- How to define and link full path to css located at a random folder on header.php
- Sizing screenshot.png without losing aspect ratio
- Software for WordPress Theme and Plugin Development? [closed]
- When to use is_home() vs is_front_page()?
- What is the preferred way to add custom javascript files to the site?
- Get the blog page URL set in Options
- How to create .pot files with POedit?
- How do I get the theme URL in PHP?
- Why when I submit a form in wordpress it loads a 404 page though URL is correct
- What is the constant WP_USE_THEMES for?
- Worthwhile to restrict direct access of theme files?
- How Do I Protect My Premium WordPress App Theme from Copying?
- How to detect mobile devices and present them a specific theme?
- Using wp_add_inline_style without a stylesheet
- How to add posts to custom menus?
- WordPress Theme Preview Image
- How To extend WP_Customize_Control
- What is the difference between front-page.php and home.php? [duplicate]
- How can I get page slug
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- When to use _e and __ for the translation?
- What is a Theme textdomain?
- How to show a custom meta box on the “Quick Edit” screen?
- How to add CSS class to custom logo?
- How to add custom css file in theme?
- How important is it to enqueue a theme’s stylesheet?
- CSS not updating in browser when I change it
- Display Search Result Count
- wp_nav_menu(), how to change class?
- theme path in javascript file
- Is wp_is_mobile() effective?
- Display Menu Name using wp_nav_menu
- Making update notification functionality for my themes
- What questions do you ask when asked to give an estimate on theme development?
- How to remove dashicons.min.css from frontend?
- How do I remove a pre-existing customizer setting?
- Minimum Template Files for Theme Development
- What’s the difference between home.php and index.php?
- pass object/JSON to wp_localize_script
- get_template_part vs action hooks in themes
- Theme Activate Hook
- Solutions for generating dynamic javascript / CSS
- wp_redirect() – headers already sent
- Can I create my own “Recent Posts” widget or customize the existing one?
- Custom single template for a specific category
- how can I add an icon/image for a child theme?
- How can I add a URL field to the attachments window?
- The the_post_thumbnail without srcset?
- The proper way to include/require PHP files in WordPress
- Get the first image from post content (eg.: hotlinked images)
- after_setup_theme always runs
- When to use add_action(‘init’) vs add_action(‘wp_enqueue_scripts’)
- Getting failure when using filemtime() with wp_enqueue_style
- Do I actually need to link my theme’s style.css in the theme files
- Why is wp_head() creating a top margin at the top of my theme header?
- How to store widget fields data as an array?
- How do I add version control to my workflow?
- Using classes instead of global functions in functions.php
- WordPress API Menu/Submenu Order
- How can I display a menu on certain pages only?
- Enqueue a stylesheet for login page and make it appear in head element