• Resolved deeveearr

    (@deeveearr)


    Hi guys,

    I’m having a problem in finding the input field for a search term.

    So far I’ve got:

    ‘Input name = q (I’m guessing that means query)’

    ‘Method = GET’

    ‘Parameters – ie=utf-8&oe=utf-8’

    …all of which I’m presuming are ok.

    The ‘form action’ is where I’m having the problem.

    So far I’ve tried adding https(dot-slashes)mywebsite/ and https(dot-slashes)mywebsite/?s= and https(dot-slashes)mywebite.com/search – none of which seem to work.

    What should I be adding in the form action field?

    For info, I’m trying to add a search form using Smart Slider, with a default WordPress search.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter deeveearr

    (@deeveearr)

    bump test

    Plugin Author Mikko Saari

    (@msaari)

    I’m not sure I understand the question properly, but a search form should have the search term in the input field s and the form action should be your site root, so just / should do:

    <form action="/" method="get">
        <input type="text" name="s" id="search" value="<?php the_search_query(); ?>" />
    </form>
    • This reply was modified 4 years, 10 months ago by Mikko Saari.
    Thread Starter deeveearr

    (@deeveearr)

    Thanks @msaari – Smart Slider have their own fields for any subscription, logins, and of course search –

    The search part has ‘input name’ – q – ‘Method’ – GET – and the form action, which if I leave it set to google, works as expected (https://www.google.com/search)

    However if I change ‘google’ to my own website, it just dies a death.

    Plugin Author Mikko Saari

    (@msaari)

    I think you should be asking these questions from the Smart Slider support then. I only know how the WordPress default search and Relevanssi works.

    Thread Starter deeveearr

    (@deeveearr)

    Yes, I just have done.

    They insist that it works fine, but you and I know differently!

    Thread Starter deeveearr

    (@deeveearr)

    Right, Smart Slider have just replied.

    They want to know what the url to my website’s default search page is.

    At present, I’m using the default wordpress search and running it through Relevanssi.

    To confirm then, what should my search page url be?

    Plugin Author Mikko Saari

    (@msaari)

    It’s /?s=searchterm, just like it is for every single WordPress site. Relevanssi doesn’t affect this at all.

    Thread Starter deeveearr

    (@deeveearr)

    Yes, that’s what I thought.

    So I’m guessing that /?s= is the part of the url that they’re waiting for?

    Plugin Author Mikko Saari

    (@msaari)

    Yes, I suppose so.

    Thread Starter deeveearr

    (@deeveearr)

    Thanks @msaari

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Input Fields?’ is closed to new replies.