Jump to content


Photo
- - - - -

How do I disable search?

search cse

  • Please log in to reply
13 replies to this topic

#1 chrisdhanaraj

chrisdhanaraj

    Member

  • Members
  • 29 posts
  • Framework Version:4.1
  • Country: Country Flag

Posted 15 October 2012 - 02:54 PM

I didn't see how I can disable search within the framework. I want to use Google CSE. Thanks!

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 15 October 2012 - 03:11 PM

You can hide Search by going to Site Options > Header And Footer.

#3 chrisdhanaraj

chrisdhanaraj

    Member

  • Members
  • 29 posts
  • Framework Version:4.1
  • Country: Country Flag

Posted 15 October 2012 - 03:16 PM

I did that. I've enclosed a screenshot. The search box remains in the fixed nav at the top which is what I want but the search results are still wordpress.

Attached Files



#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 15 October 2012 - 03:44 PM

Please go to Site Options > NavBar and hide the search form.

#5 chrisdhanaraj

chrisdhanaraj

    Member

  • Members
  • 29 posts
  • Framework Version:4.1
  • Country: Country Flag

Posted 15 October 2012 - 03:48 PM

How do I now put a new search box in that area since it's now hidden?

#6 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 15 October 2012 - 04:13 PM

Are you using the Google Search plugin to implement the search?

#7 chrisdhanaraj

chrisdhanaraj

    Member

  • Members
  • 29 posts
  • Framework Version:4.1
  • Country: Country Flag

Posted 15 October 2012 - 04:26 PM

I'm using this plugin:

Please Login or Register to see this Hidden Content



Do you have an alternate that works better?

#8 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 15 October 2012 - 04:50 PM

There is this one:

Please Login or Register to see this Hidden Content



#9 chrisdhanaraj

chrisdhanaraj

    Member

  • Members
  • 29 posts
  • Framework Version:4.1
  • Country: Country Flag

Posted 15 October 2012 - 05:00 PM

How do I add a search bar in the fixed top nav that replaces the one that was provided by the framework? Is this a function or a template?

#10 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 15 October 2012 - 05:14 PM

The search bar would need to be added to the section. With the plugin you've selected, is the search field implemented using code?

#11 chrisdhanaraj

chrisdhanaraj

    Member

  • Members
  • 29 posts
  • Framework Version:4.1
  • Country: Country Flag

Posted 17 October 2012 - 02:29 PM

How do I edit a section?

#12 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 17 October 2012 - 02:48 PM

You dont have to edit any sections. You have 2 choices.

1. Use the built in filter 'pagelines_search_form' to change the search box code.

2. Make a new file searchform.php in your child theme and put whatever you like in it.

#13 chrisdhanaraj

chrisdhanaraj

    Member

  • Members
  • 29 posts
  • Framework Version:4.1
  • Country: Country Flag

Posted 27 November 2012 - 08:35 PM

How would I implement the following code using your example?


<!-- Put the following javascript before the closing </head> tag. -->
<script>
(function() {
var cx = '001061980289920023607:wfqci_qk0mc';
var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
})();
</script>

<!-- Place this tag where you want the search results to render -->
<gcse:searchresults-only></gcse:searchresults-only>

#14 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 28 November 2012 - 04:34 AM

Hi there, you can place that code in Pagelines>site options>custom code>header scripts (second box down)





Also tagged with one or more of these keywords: search, cse