lansingfamily
Forum Replies Created
-
Following up, in case it helps others. I have resolved this issue by switching to a Genesis theme (StudioPress), which doesn’t use blocks for the template pages. However, I am also deploying my WordPress site as a static site on Shifter. So the /?s= URL was not resolving correctly. So I modified the plugin files to convert the instantsearch.php into a template page, then added some JavaScript to handle parsing the query parameters, which I changed to q= instead of s=. Finally my search box is custom html to make sure it routes to right place.
Everything but autocomplete is working and I would love to share code if anyone needs it.
Ok, thank you for looking into it!
I tried pasting those parts in the HTML section rather than the PHP section, but it doesn’t appear that they are being recognized as nothing changed. Meaning the site will load but the header remains the same.
- This reply was modified 1 year, 6 months ago by lansingfamily.
- This reply was modified 1 year, 6 months ago by lansingfamily.
Here is the error:
[05-Sep-2023 14:41:29 UTC] PHP Parse error: syntax error, unexpected token "<", expecting end of file in /var/www/html/web/wp/wp-content/themes/twentytwentytwo/algolia/instantsearch.php on line 12
Thanks for the quick response Michael. I tested your suggestion this morning as I was already attempting to modify those lines with other function calls. This produces a 500 error when attempting to access the search page.