Site logo

[Support request] Add Aria Label to Search Form in Widget Sidebar

Home Forums Support [Support request] Add Aria Label to Search Form in Widget Sidebar

Home Forums Support Add Aria Label to Search Form in Widget Sidebar

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1888433
    Jason

    Hello,

    To remain compliant with accessibility standards, I need to add a tag/label to the search form in my widget bar. I found the code for the navigation search in another thread, but it’s not applying to the search widget in the widget bar.

    Is there a snippet of PHP code I can add that will solve for this?

    Thanks!

    #1888482
    Leo
    Staff
    Customer Support

    Hi Jason,

    Are you referring to the search widget? If so that’s a WordPress widget so GP doesn’t have any control.

    I’d recommend checking with the WordPress support team to see if they have a snippet you can use.

    Hope this helps 🙂

    #1888501
    Jason

    It’s just the “search our site” function, in the widget bar. It should be no different than adding a snippet for the Aria tag in the navigation search which was able to be solved for another user?

    #1888548
    Leo
    Staff
    Customer Support

    Are you referring to the search widget here?

    If so that’s a WordPress widget so the theme doesn’t control.

    The navigation search is a GP option so the theme does control.

    If you aren’t sure, then please link me to the page in question.

    #1889459
    Jason

    I’ve added the page. Please see the widget on the right sidebar, above the related posts.

    #1889560
    Leo
    Staff
    Customer Support

    Yup looks like you are using a Search block which is a core widget that the theme doesn’t have any control of.

    Please check with WordPress’ support team.

    Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.