Support » Accessibility » Form/Search Box Label

  • The Search form is throwing an ADA compliance error, and I can’t get <label> to have any effect in searchform.php, which is where I think the label is supposed to go.

    Current code is:
    <form action=”<?php echo esc_url( get_site_url() );?>” method=”get” class=”search-form”>
    <input type=”text” name=”s” id=”s” value=”<?php the_search_query(); ?>” class=”keyword”/>
    <button type=”submit” class=”button”><i class=”flora-icon-search”></i></button>
    </form>

    And I’ve added <label for=”s”>Search this website…</label> in every possible spot.

    Does anyone know how to resolve this issue?

    Thanks in advance,
    Michael

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Unfortunately this isn’t something we can help with because you’re using a commercial theme and we don’t support those. Can you contact the theme authors/ distributors about this problem?

    megacrypto

    (@megacrypto)

    Hello,
    Checked the theme. Saw no problem.
    Regards

    Moderator Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try deactivating all of your plugins to explore whether any could be responsible.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Form/Search Box Label’ is closed to new replies.