I am using the last updated version 4.24.1.
But the PageSpeed Insight still shows the missing attribute of the button.
Please help me how to add aria label to the button?
If you want, you can safely ignore that, the actual WCAG AA check is positive, button labels are not mandatory.
However if you want to add a button label, you can do that by editing the core plugin code.
– Make sure to have a full server backup first
– Open up the wp-content/plugins/ajax-search-pro/includes/views/asp.shortcode.probox.php file on your server
– Replace it’s content with this.
– Save, and the issue is solved.
You are great.
I know how to add that attribute into the code.
I had looked for that code in the plugin for a day. However unfortunately I did not find it.
Thanks for your help, Ernest.
I do not need to replace all the code in that file, but just add simply the attribute aria.
It worked perfectly.