• Resolved Mark Barnes

    (@mark8barnes)


    The plugin requires the form’s ID to be “searchform”. However, when themes support HTML5, WordPress doesn’t give search forms that ID. (You can see the code on lines 209-210 of wp-includes\general-template.php):

    if ( 'html5' == $format ) {
    	$form = '<form role="search" method="get" class="search-form" action="' . esc_url( home_url( '/' ) ) . '">

    If WP Search Suggest could support that form in addition to the HTML4 form, it would make life much easier for those of us running HTML5 themes.

    Thanks

    • This topic was modified 6 years, 5 months ago by Mark Barnes.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Konstantin Obenland

    (@obenland)

    Hi Mark,

    I just shipped a version 4 with an attempt to fix this. Please let me know if it doesn’t fix things for you.

    Thanks for reaching out!

    Thread Starter Mark Barnes

    (@mark8barnes)

    That triggers the AJAX, which it didn’t before. Thanks for the speedy turnaround. (It’s not returning any data yet, but that might be an issue with my custom post types. What do I need to check in my code to make sure my CPTs will return results?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility with HTML5’ is closed to new replies.