Search problem in custom 404 page

3 replies · opened Mar 2, 2017

BburaksansalMar 2, 2017

Hi,

I have a problem regarding Search on one of the pages. I've made custom 404 page using your 404-simple layout: www.allaboutturkey.us/404.html . I have updated the var cx = on the search.html page (www.allaboutturkey.us/search.html). Strangely, search from any of my pages' header works fine, but not from 404.html .

Is there anything wrong in my 404.html as regards to searching?

					<form action="search.html" method="get" role="form" class="nobottommargin">
						<div class="input-group input-group-lg">
							<input type="text" class="form-control" placeholder="Search for Pages...">
							<span class="input-group-btn">
								<button class="btn btn-danger" type="button">Search</button>
							</span>
						</div>
					</form>

Thanks.
Burak

DdaihloMar 3, 2017

I didn't even know there was a search function ^^
Looking at your form I'd guess that it needs the text entry field to be given a name 'q'

From:
To:

That's how this page receives the search query term:

http://www.allaboutturkey.us/search.html?q=turkey

SSemicolon WebSTAFFMar 20, 2017

Hello,

As @daihlo mentioned, you will need to add name="q" to the Input Field of the Form so that the Query can be submitted to the Search Page and the Results can be fetched from Google Search.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

BburaksansalMar 22, 2017

Thank you both. It solved my problem :)

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard