The Big Spring Sale! Up to 50% off!

Search box not working?

hameed_hashemi2001
58 Posts
hameed_hashemi2001 posted this 25 January 2023
Ask a Question

I create a site and have added a search box on the header. However it does not seem to be working? Is there something I need to do with it?

I create a site and have added a search box on the header. However it does not seem to be working? Is there something I need to do with it?
Vote to pay developers attention to this features or issue.
7 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 25 January 2023

Hello Hameed,
Thanks for choosing Nicepage!

Yes, the search control is mostly for the CMS exports. If you exported your project as HTML you can embed the third-party code into the page to add this functionality to the HTML pages.

...................................................
Sincerely,
Negat Veri
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Hameed, Thanks for choosing Nicepage! Yes, the search control is mostly for the CMS exports. If you exported your project as HTML you can embed the third-party code into the page to add this functionality to the HTML pages. ................................................... Sincerely, Negat Veri Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
hameed_hashemi2001
58 Posts
hameed_hashemi2001 posted this 26 January 2023

Can you please send me the html third party code to add in the page? And I should add in all the pages?

Can you please send me the html third party code to add in the page? And I should add in all the pages?
xvemanuelvx
362 Posts
xvemanuelvx posted this 26 January 2023

Try Google Custom Search

https://programmablesearchengine.google.com/about/

or this Code:

<script language="JavaScript">
var TRange=null;
function findString (str) {
 if (parseInt(navigator.appVersion)<4) return;
 var strFound;
 if (window.find) {


  // CODE FOR BROWSERS THAT SUPPORT window.find
  strFound=self.find(str);
  if (strFound && self.getSelection && !self.getSelection().anchorNode) {
   strFound=self.find(str)
  }
  if (!strFound) {
   strFound=self.find(str,0,1)
   while (self.find(str,0,1)) continue
  }
 }
 else if (navigator.appName.indexOf("Microsoft")!=-1) {


  // EXPLORER-SPECIFIC CODE


  if (TRange!=null) {
   TRange.collapse(false)
   strFound=TRange.findText(str)
   if (strFound) TRange.select()
  }
  if (TRange==null || strFound==0) {
   TRange=self.document.body.createTextRange()
   strFound=TRange.findText(str)
   if (strFound) TRange.select()
  }
 }
 else if (navigator.appName=="Opera") {
  alert ("Opera Browser wird leider nicht unterstützt.")
  return;
 }
 if (!strFound) alert ("Der Text '"+str+"' wurde nicht gefunden!")
 return;
}
</script>



<form name="f1" action="" onsubmit="if(this.t1.value!=null &amp;&amp; this.t1.value!='') findString(this.t1.value);return false">
    <input type="text" name="t1" value="" size="20">
    <input type="submit" name="b1" value="Suchen">
</form>
Try Google Custom Search https://programmablesearchengine.google.com/about/ or this Code: <script language="JavaScript"> var TRange=null; function findString (str) { if (parseInt(navigator.appVersion)<4) return; var strFound; if (window.find) { // CODE FOR BROWSERS THAT SUPPORT window.find strFound=self.find(str); if (strFound && self.getSelection && !self.getSelection().anchorNode) { strFound=self.find(str) } if (!strFound) { strFound=self.find(str,0,1) while (self.find(str,0,1)) continue } } else if (navigator.appName.indexOf("Microsoft")!=-1) { // EXPLORER-SPECIFIC CODE if (TRange!=null) { TRange.collapse(false) strFound=TRange.findText(str) if (strFound) TRange.select() } if (TRange==null || strFound==0) { TRange=self.document.body.createTextRange() strFound=TRange.findText(str) if (strFound) TRange.select() } } else if (navigator.appName=="Opera") { alert ("Opera Browser wird leider nicht unterstützt.") return; } if (!strFound) alert ("Der Text '"+str+"' wurde nicht gefunden!") return; } </script> <form name="f1" action="" onsubmit="if(this.t1.value!=null &amp;&amp; this.t1.value!='') findString(this.t1.value);return false"> <input type="text" name="t1" value="" size="20"> <input type="submit" name="b1" value="Suchen"> </form>
hameed_hashemi2001
58 Posts
hameed_hashemi2001 posted this 28 January 2023

Hello Negat Veri
the link you send to me only its searching the page i open it but its not searching the entire website.
even do i am searching with my cellphone its not bringing me on a exact word i am searching for. and its jumping to the end of the page. i think the code its not friendly with mobile

can you please give me a (Third party html code) which it can search my entire website (all of my website) at any page i am.
example i am in Rhinoplasty Page and i wane search for weight loss page, which this code cant give me a result.

Sincerely,
Hameed

Hello Negat Veri the link you send to me only its searching the page i open it but its not searching the entire website. even do i am searching with my cellphone its not bringing me on a exact word i am searching for. and its jumping to the end of the page. i think the code its not friendly with mobile can you please give me a (Third party html code) which it can search my entire website (all of my website) at any page i am. example i am in Rhinoplasty Page and i wane search for weight loss page, which this code cant give me a result. Sincerely, Hameed
Support Team
Support Team posted this 06 February 2023

Hello Hameed,

Unfortunately, we can't provide any third-party code.

We only could suggest checking the best-provided solution over the internet, thanks for your understanding.
...................................................
Sincerely,
Negat Veri
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Hameed, Unfortunately, we can't provide any third-party code. We only could suggest checking the best-provided solution over the internet, thanks for your understanding. ................................................... Sincerely, Negat Veri Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
hameed_hashemi2001
58 Posts
hameed_hashemi2001 posted this 22 February 2023

Can you suggest me the html code to add in the page?
which it can search my entire website (all of my website) at any page i am?
example i am in Rhinoplasty Page and i wane search for weight loss page, which this code cant give me a result. For entire website. Only finding a word on a present page.

Sincerely,
Hameed> Try Google Custom Search

https://programmablesearchengine.google.com/about/

or this Code:

&lt;form name action onsubmit&gt;
    &lt;input type name value size&gt;
    &lt;input type name value&gt;
</form>
Can you suggest me the html code to add in the page? which it can search my entire website (all of my website) at any page i am? example i am in Rhinoplasty Page and i wane search for weight loss page, which this code cant give me a result. For entire website. Only finding a word on a present page. Sincerely, Hameed> Try Google Custom Search > > https://programmablesearchengine.google.com/about/ > > or this Code: > > > > > > &lt;form name action onsubmit&gt; > &lt;input type name value size&gt; > &lt;input type name value&gt; > </form>
Support Team
Support Team posted this 28 February 2023

Hameed,

Unfortunately, we do not have any code suggestions for your case.

...................................................
Sincerely,
Alan R.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hameed, Unfortunately, we do not have any code suggestions for your case. ................................................... Sincerely, Alan R. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments