Search bar

Hi, is it possible to include a search bar
our website is product content so i want to give the UV a way to quickly find what product they want

1 Like

Interested to know this feature too @Norm :slight_smile:

@Olivierd40 adding search to a website usually requires a database to power the search, as Blocs doesn’t create database driven sites its not possible to easily implement this with an input field. However, Google do offer a search snippet that some sites use, this snippet will search google results for your logged pages that contain keywords etc, Im not that familiar with the Google product but it could be an option.

1 Like

Thanks, I’ll try it

@norm I so envy Adobe Muse right now… they have intrgrated Search Bars by a developer. Is it possible with blocs? Check this out.

1 Like

@mackyangeles Cool thanks for sharing, I’ll take a look.



Building websites with Webflow we have the same issue.
Here is a possible sulution:

and this one:

Wow the basic Swiftype plan is $299 a month, Im clearly in the wrong business :fearful:



Hi Norm,

Always good to see what others do…
But I prefer your pricing :smile:

Findberry mucho cheaper



Concerning Design and Stucture I prefer Blocs having its own. Hihi. Right @norm :slight_smile:

1 Like


I would think, Google CSE could be a Bric pretty easily in Blocs, perhaps.

Google CSE (Free) or Google GSS Enterprise Search (Paid)

Here is an example Blocs site using Google CSE (see @ bottom of the main page) - by Jen Talty

However, I can’t seem to find her user profile on the Blocs forum anymore. I had previously replied to her posts but they also seem to be gone? Link of Blocs site seen here however.

There are others to be found as well, for example:




So options exist, beyond paying $299 a month. :wink:

Totally agree, however, I do like the thought of being able to control the styling on the results page.

Added the google field is trivial it’s just not a great experience as it takes you offsite, unless I’m missing somthing?


Well, free is free. Sometimes free overly exceeds expectations and many times paid fails to reach those same expectations.

Of course free has it’s limits, such as possible lack of config, branding etc. But hey, it is free. Swiftype at $299 a month mentioned above is always an option for example. Funny thing is, Swiftype actually used to be $19 a month by contrast early last year. That’s quite an amazing price hike by them since - huh? Almost 1500% :astonished:

By contrast take others like Algolia Search, as one example which offers Free + paid, and is a lot cheaper than Swiftype concerning the paid options.

Did you look at the sample site I linked to above that was done in Blocs. It uses a PopOver / iFrame to load the results on the site not offsite, that then link to the intended pages referenced. I would assume you could open the chosen link in the same window as well. Is that what you mean?

I also provided two links discussing Google CSE appearance / branding options and settings. The GSS paid version allows further brand customization as well of course.

There are some free pre-existing PHP/MySQL alternatives as well. However many look old and outdated (hence security). But perhaps most importantly they would be overly complex to deploy for the vast number of Blocs users whom wish to avoid code at all costs it seems. So from a setup and deployment standpoint probably not a feasible option in regards to most Blocs users due to that. Even something like Solr would likewise fit in this category.

Honestly a simple AJAX / JS / JSON Search, might be the best option for Blocs.

Here is a simple example of AJAX Live Search with simple PHP that searches an XML file. Which could perhaps be modified to work with Blocs sitemap file. However from what I see most people don’t name there Blocs pages or titles specific enough for that to work correctly. So a more realistic approach for this simple method might be creating an additional xml file from each pages stripped out relative data for the purpose of search when a site is exported. However that might cause unwanted duplicate content concerns for crawlers. But something certainly seems possible concerning this simple approach. You can find other examples like this as well.

Further along these same lines you can look at complete frameworks such as, Tipuesearch.js , Lunr.js , Elasticlunr.js , Etc., which all offer robust site search capabilities and options.

From the AJAX / JS / JSON , Etc., standpoint you would be free to allow full customization of styling as you desire, remain onsite, etc.

So perhaps this is the simplest and easiest approach for Blocs and a “Site Search Bric” for Blocs Users.




Well put! I’ll come back to this on Monday and process it properly. Some gems here, thanks.

1 Like

@norm Tipuesearch.js I saw this js and I love it to be integrated with Blocs! Another powerful bric to be added on Blocs! Looking forward :slight_smile:

1 Like

Hey @mackyangeles , been doing some reading on TipueSearch. Looks like a good potential match for Blocs so could be added in the future most like 2.5+.

Anyway I just wanted to mention it’s pretty easy to add this to a Blocs project now. You should be able to add the required field in a HTML widget, attach the tipuesearch.js to all your pages in page settings and then manually create your content json file for your site and also attach that after export.

Granted it’s not ideal, just wanted to make you aware it’s achievable as it may be a few months before I get round to adding it.

Hi @Norm, I tried integrating this already via HTML though it lacks customization hehe much better if Blocs can do it as Bric hehe :slight_smile:

How do you mean it lacks customisation?

1 Like

I am still a SoftPress Freeway user, although I am gravitating toward Blocs at high speed right now, mainly because I want a RESPONSIVE site and I just can’t figure out how to EASILY do that in Freeway Pro 7. One of the biggest things preventing my jump to Blocs though is the present lack of an EASY means to add SITE SEARCH. My existing sites built in Freeway are NOT responsive, but I was able to implement Google Custom Search on them. You can see this on the top page of the following Japanese site, in the bottom left corner:

Type “alarm” as a search term and hit return. You will see results on a new page. Then hit your browser BACK button and note that they keyword you type is now gone, which is how it should be. (Having a keyword stuck inside a search field is rather unsightly in my opinion.) It took a bit of work, but I was able to get it working consistently in Mac, Windows and mobile browsers.

The only thing I don’t like is the fact I have it at the bottom left. I would rather have a magnifying glass icon at the right of my navigation bar, but Freeway’s CSS Menus action does not allow for search.

All said, if I move to Blocs, I would like to see a new “Navigation” block with a search icon at right that, when clicked, would either shift the menus to the left OR overlap them similar to how the Drupal site does it:

Of course, it should not leave the search term stuck inside the field after you finish a search and return to the page from which you initiated search. And it would be nice if the text cursor was not stuck inside the field either. (Test the search field on my Japanese page linked above to see how that works.)

Search is a very important feature to me. I’ve used it for YEARS. Prior to Google Custom Search, I used Atomz (also free). When Atomz died, I switched to Google, which works well enough despite the ads. There just needs to be a drop-dead easy means of adding search in Blocs, without having to resort to loads of code. For truly, the Blocs motto is that you don’t need to fiddle with code to get on the web. And honestly, that’s what led me to SoftPress Freeway back in 1999. The ease of building a “responsive” site is now pulling me toward Blocs. Please pull me harder with a SITE SEARCH feature! :slight_smile: