Hello,
I am not a developer and I was hoping someone could tell me if I have tweaked the following code correctly for the SITE SEARCH INPUT module. Here is a section of code from the Site Search Input module:
<input type="text" class="hs-search-field__input" name="term" autocomplete="off" aria-label="{{ module.field_label || "Search" }}" placeholder="{{ module.placeholder }}">
{% if module.content_types.website_pages %}
<input type="hidden" name="type" value="SITE_PAGE">
<input type="hidden" name="property" value="title">
<input type="hidden" name="property" value="description">
{% endif %}
I added the two new input “property” lines under “SITE_PAGE”.
Does this make the search look for the key phrases in the webpage’s title and meta descriptions only? And is this coded properly?
I am just trying to streamline the search results so that it does not return too many irrelevant results from the ENTIRE webpage, or from the main menu, etc.