You can pass an array of attributes with aria_label
attribute in it.
Try this:
get_search_form(array('aria_label' => 'search-form'));
This function gets a form from searchform.php
by default and if you have this file in your theme and aria-label still missing, you need to check the code in this file. Sometimes developers do not include an option to set an aria-label.
Related Posts:
- Menu items description? Custom Walker for wp_nav_menu()
- Sizing screenshot.png without losing aspect ratio
- How Do I Protect My Premium WordPress App Theme from Copying?
- Get entered value of customiser field for live preview
- Add default Backgrounds
- Page template in two level deep folder
- How to Include SVG sprites icons into the body tag? [closed]
- Why doesn’t /2013/01/ properly return January’s archives in archive.php?
- Worthwhile to restrict direct access of theme files?
- Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap
- Child Theme not loading parent CSS
- Use of undefined constant FS_CHMOD_DIR – assumed ‘FS_CHMOD_DIR’
- WordPress settings API error when checkbox unchecked
- How the WordPress sidebar works
- How to remove header images from all pages except the home page? skeleton theme
- Replace Home with image link inside custom header menu
- Separated Comment from Post
- WordPress website loads but is not displayed until page scrolled
- wp_head() not inserting the default stylesheet style.css
- wp_enqueue_script being ignored in custom theme
- First completely customized theme, where should I start?
- Theme Customizer not loading
- WordPress Customizer Control with React
- Theme Options page not showing up in admin menu
- File Security Check in wordpress in index.php of theme
- Force index.php have_posts() loop to exit if no sticky posts found
- Is my approach to enqueue styles inefficient?
- How do the default themes reference style.css?
- Input ordering in wordpress theme customizer
- Customize the previous_post_link output
- Which file handles the block latest posts, I want to examine excerpt handling
- Menu item added in wp_nav_menu_items filter is never highlighted
- Single page site with history.js
- Not able to select width of blocks inside of cover block
- How do i make a custom section’s setting display the default value in Customizer?
- Warning: A non-numeric value encountered in theme functions.php
- In this snippet how do I force the function to use gravatar rated G and fill in the alt for get_avatar()?
- “Add A Widget” button in the Customizer
- Responsive Images – crop don’t seem to work
- Set parent theme language with custom .mo files
- WooCommerce: multiple input field for multiple product variations
- Change template if tag selected
- WordPress 3.8 Backend Admin Color Scheme add more scheme how to do?
- How to change the theme directory uri for localhost?
- How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?
- Take control of WordPress before functions.php
- Why in the static pages of my theme are showing these information?
- featured content: which area does this cover [closed]
- How to count posts of a category and of a category limited by a tag
- CSS class on last post in loop ( custom query )
- add_theme_support( ‘admin-bar’ ) causes fatal error
- how to make wordpress change the title and keep page name?
- Which cache is kicking
- How do I merge 2 WordPress Themes?
- Place title (in correct place) above image with opaque background [closed]
- Fastest way to update a theme
- Load different single.php templates according to post layout selection
- Full width featured thumbnail
- Is there a way to switch to another theme?
- Right procedure when you develop a WP Website for a client
- Different themes on one site
- // File Security Check from WooCommerce [duplicate]
- Allow different tags in widget titles
- How do I implement jPanelMenu?
- When trying to set title, not sure how to edit it for different pages
- Site returns a 500 Internal server error
- Switch theme if ie compatibility/quirks mode?
- Pagination and multiple loops
- How to add cropped custom header image?
- Changing background color depending on parent page?
- Any way to change/add to the theme name dynamically?
- Available widgets is not showing up?
- Getting white screen of death on category pages because of body_class() function
- Alter shop page lay-out in OceanWP theme
- WordPress link to another page in site does not render a
- How to add an import widgets functionality to wordpress themes without a plugin
- Developing WordPress site behind a static site
- Problem with Displaying Custom Theme Page’s Content
- Change site title color on individual pages
- Git ignore everything except custom theme directory
- HTML to → WP Conversion
- Add multiple sections, settings and controls at once to the Customizer
- Font not loading [closed]
- How to change parent permalink?
- Adding a Class to an Getting From Post Content
- Editable screenshot.png in a custom theme developed
- How to create multiple pages in a client theme?
- How to share posts (and plugins) between existing site and new, separate dev/test installation?
- get_theme_mod not pulling css colors into header using wp_head
- Duplicate WordPress site to subdirectory but use same db?
- Conditional loop based on current page
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- wp_deregister_script was called incorrectly
- Undefined index: debuging error for theme option template snippet
- Bestway to write php functions
- custom theme’s search not working
- Permalinks problem with custom theme
- ways to create customized theme (hard coded – no pagebuilder)
- Can’t select my block by clicking on it on apiVersion – but using blockProps
- Webpack does not create or update index.asset.php file in build folder