How can I set a manual filter on Google Custom Search Engine (not from CSE panel)?
For example, to open the link in a new tab I'm using this code:
<gcse:searchresults-only linktarget="_blank"></gcse:searchresults-only>
Now I want to set the "safe mode", and also set the results per page (to show 10 results, for instance).
To be clearer, I want to allow users to change those filters from my website, that's is why I'm trying to add them manually! Thanks.
SafeSearch="off"
attribute is appended to the above element, what are the conditions that the toggle should be based on to change between the valueson
andoff
? – Villeneuveactive
andoff
, checkbox checked setSafeSearch="active"
checkbox uncheckedSafeSearch="off"
developers.google.com/custom-search/docs/element – GrindwebSearchSafesearch
andSafeSearch
to be"active"
oroff
where you can change both. – Gavette