Archived

This topic is now archived and is closed to further replies.

  • 0

How do I disable search?


Question

Posted · Report post

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

Share this post


Link to post
Share on other sites

13 answers to this question

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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.

post-42204-0-86991800-1350314205_thumb.p

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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?

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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>

Share this post


Link to post
Share on other sites

Posted · Report post

How do I edit a section?

Share this post


Link to post
Share on other sites

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites