> For the complete documentation index, see [llms.txt](https://docs.navigaglobal.com/everyware/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.navigaglobal.com/everyware/feature-advanced-search/how-to-setup.md).

# How to Setup

1. Create a WordPress page and assign it to the Advanced Search Page template.
2. Create a second page called "Search Help", path must be "/search-help". You're welcome to fill in the text above found under "Search Help" in this documentation. &#x20;
3. Open "*/www/wp-content/themes/*[*everyware-theme-base-2/config-facets.json*](https://bitbucket.org/infomaker/everyware-theme-base-2/src/168b9e66929c0819a6d3cf9fae94c872aeb6f122/?at=feature%2Fadvanced-search)" and change values to match your own OC data.&#x20;
4. If you have your own main.twig in your theme, you will have to merge code snippets like advance\_search\_page\_custom\_js for the JS into your own version.&#x20;

{% code overflow="wrap" %}

```
{% if advance_search_page_custom_js %} {% block advance_search_page_custom_js %} {% include "@base/page/part/advance-search-js.twig" %} {% endblock %} {% endif %}
```

{% endcode %}

\
To include advanced Search sccs specifically, in case not all scss from everyware-theme-base-2 are included, in your own child theme.

{% code overflow="wrap" %}

```
@import "../../../everyware-theme-base-2/assets/scss/advance-search/_all.scss";
```

{% endcode %}

1. Add nginx snippet (Location: *nginx/app/locations.conf)* \
   *Note: here location \~ ^/(advanced-search/) will be based on title of the Advanced Search template, it has to match the url path of the page created in point 1.*

{% code overflow="wrap" %}

```
location ~ ^/(advanced-search/) { # This disables the monitoring. fastcgi_param PHP_VALUE "newrelic.browser_monitoring.auto_instrument=0"; # This disables the caching. header_filter_by_lua_block { ngx.header["Cache-Control"] = "max-age=" .. 0 ngx.header["expires"] = -1 ngx.header["disablecaching"] = 1 } # The rest is to be consistent with the server vars etc are the same as for the usual PHP location. include common/fastcgi_params; fastcgi_param SCRIPT_NAME "/index.php"; fastcgi_param DOCUMENT_URI "/index.php"; fastcgi_param SCRIPT_FILENAME $document_root/index.php; fastcgi_index index.php; fastcgi_pass php-fpm; }
```

{% endcode %}
