question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google search doesn't work on mobile

See original GitHub issue

The search box default says “enter search term and hit enter” but there is not a clear way to “hit enter” on iOS.

image

I fixed this problem by adding a submit button below the input within the form like so:

<form id="search" onsubmit="google_search(); return false;">
	<input type="text" id="google-search" placeholder="{{ site.data.language.enter_search_term }}">
	<button class="radius" type="submit">Submit</button>
</form>

And by changing the site.data.language.enter_search_term to be “Enter search term and hit submit”, not sure what the German translation would be.

I can submit a PR if you’d like.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Phlowcommented, Dec 14, 2016

I have already changed the search function for the next release. It will be lunr.js – It’s not good for big sites, but most of the forks I found don’t have so many pages, so I guess lunr.js with an option to use google or duckduckgo will be a good choice. You can check out lunr.js already in my other theme https://phlow.github.io/simplicity/search/

0reactions
ghostcommented, Dec 13, 2016

Bummer. Sounds like a Safari issue. Does “Return” submit the search now? Browsers are responsible for doing something with the attributes. Here’s more detail: http://devdocs.io/html/element/input

Good luck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google app won't display search results - Android
Google app won't display search results · 1. Make sure your device isn't in Airplane mode · 2. Check your Wi-Fi connection ·...
Read more >
Top 6 Methods to Fix Google Search Bar Not Working on ...
Part 2: 6 Methods to Fix Google Search Bar Not Working ; 1. Restart Android · Press and hold the power button on...
Read more >
How To Resolve 'Google Search Not Working' Issue On Android
How To Resolve 'Google Search Not Working' Issue On Android ; Restart Google app · Step 1: · Click on Google, on the...
Read more >
[SOLVED] Google Search Not Working on Android and Chrome
Is Google search not working on your Android phone? Read this post and get some solutions to fix Google search not working.
Read more >
How to Fix Google Search Not Working on Android (App and ...
1. Restart Phone · 2. Check Internet Connection · 3. Re-Add Search Widget · 4. Restart Google App · 5. Clear Google App...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found