Industry guru Dave Taylor offers tech support on technical and business topics, including iPhone, iPod, Microsoft Windows, Sony PSP, cellphones, online advertising, CSS, Web design, business, Unix, Linux, SEO, Mac OS X, and shell script programming.     


How do I add a Lijit search widget to my site?

I know you have shown how to add a Google search box and such to my site (see Add Google search to your site) and even saw that you've written about how to utilize Google Custom Search (see Add Google Custom Search to your site), but I want to implement a cool widget I saw on another site from Lijit. Do you have any info on that?


Dave's Answer:

Your timing is very good as I am ready to implement a Lijit widget on my own sites because, frankly, the search engines I have aren't very good. I started out with just a link to the generic Google search engine, then tweaked it to constrain it to just the domain in question (as documented in Add Google search to your site) then ended up implementing a Google Custom Search Engine. I also utilize the Movable Type search system that's included with MT weblog engines, which isn't that good, truth be told.

And so, after some friendly prodding from the company (they're local and friends), Lijit.

The first step in this journey is to go to the site where the signup is on the very first page, smack dab in the middle of the page. It'll look like this:

Lijit: Signup

Easy enough. Click on the button and you'll shortly be taken to a page where you can tie in your bookmarks (del.icio.us, reddit, Stumble Upon, etc)., photo sharing sites (flickr, YouTube), and social networks (LinkedIn, MySpace, Facebook, Twitter, etc). It looks like this:

Lijit: Signup: Screen 2
Note: Image slightly edited for space reasons

Since none of my other online presences are related to my parenting site, for this one I'm going to leave everything unchecked and click on "Save and Continue". Note that you can easily add the URL of your friends sites and/or other sites that you think should be lumped in with your own search results here too, a la Google Custom Search.

Lijit: Signup: Blogroll

This is cool. They scrape the home page of the site for all the external links (though they call it a "blogroll" it isn't, at least on my site) and give me an easy way to include those that would be useful additional search results for the site. Nice!

Finally it's time to create an account (and much credit to the Lijit team for realizing that asking for individual credentials after collecting the basic widget data is a smart move):

Lijit: Signup: Enroll

Of special note is the naughty word filter: as they say "When someone searches you using a naughty word, those searches will not be displayed anywhere within the Lijit site or your Lijit Search Wijit." My suggestion: choose this option.

Next it'll spin for a while building your search engine (though I think it's just adding you to the user database, but that's another story) then ask you for a picture. Upload one - it's for your account, not the blog search widget - and again click on "Continue".

Now you can have some fun playing with the configuration of your Lijit search widget. I'll step through it piece by piece. First section is:

Lijit: Configure your Widget 1

I'm a minimalist so the first thing I did was uncheck all the optional elements, the content icons, "Add to Google" button, management menu, etc etc. On the right side of this page you can see a preview of the widget as you tweak things. I settled on style "slim rectangle", color "grey" and logo color "grey", chopped off all the other options, and here's the preview, so far:

Lijit: Widget preview

Nice and definitely minimalist!

The next section of the configuration options are more about the behavior of the widget and the resultant search page:

Lijit: Configure: Widgets

I suggest you leave them exactly as-is until you have a chance to play with your Lijit widget and see how it works on your site.

Finally you have some code to play with! If you're on Typepad or Blogger, there's a one-click install, but if you're a Wordpress or Movable Type person (I use the latter) you'll need to grab the code. It looks like this:

Lijit: Widget Source Code

Let's unwrap that and have a look:

<script type="text/javascript"
src="http://www.lijit.com/informers/wijits?type=pvs&username=d1taylor&js=1"></script>
<a style='color: #999' href='http://www.lijit.com' id='lijit_wijit_pvs_link'>Lijit Search</a>

and the code, hot:

Lijit Search

Nice. All that's left at this point is to find the right spot in the parenting blog template in Movable Type, copy and paste in this particular code and republish all the pages. Ten minutes and ... done!

Now, your assignment:

  • Go to my parenting blog.
  • Search for something, anything. (stumped? Try "pacifier")
  • Bask in the glory of the Lijit search!
Now, the last part of the assignment is to post a note telling me what you think of the Lijit search. Is it superior to a Google Custom Search? Or is there another smart alternative search widget for bloggers out there?


More Useful Blogs and Blogging Articles:
✔   Get my shopping cart plugin to work with WordPress?
We've put in a shopping cart for a client that's not working, and we need some help! The cart is currently using the...
✔   Embed an audio player on a blog or web page?
I have some mp3 audio files I've recorded and would like to have people who visit my site be able to listen to...
✔   Can I write a guest review for AskDaveTaylor.com?
Hi Dave. I'm a big fan of your site and love that you're doing so many reviews now. I've noticed, however, that there...
✔   Change author on WordPress blog post?
I have two accounts set up for my WordPress blog and I'd like to be able to have all my posts from a...
✔   How do I restructure my Wordpress blog without losing SEO?
I have a wordpress blog that was using categories in the url structure like this: /category_name/post_name/ Then I had read somewhere that if...

Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
    Enter your name: and your email addr:  




Categorized: Blogs and Blogging , HTML, JavaScript and Web Site Programming   (Article 7885, Written by )
Tagged: blog search, lijit, search engines, search widgets, widget design
Previous: Why can't I send mail from my .Mac account?
Next: Change background color on a single slide in Microsoft Powerpoint?




Reader Comments To Date: 6

Amit Bhawani said, on February 10, 2008 12:24 AM:

Dave make sure you check out the ligit widget in your sidebar once again because 50% of the widget is non-clickable and i guess its flash based. I was searching for a search box to search something and now iam led to nowhere :(

Apadwe said, on February 11, 2008 5:54 PM:

Hey Dave! Just got done playing with the widget (or should I say wijit) and I was really impressed by it, so much in fact, I added it to my site. :)

I haven't seen anything else that is as easy to use as this.

mace said, on February 23, 2008 8:29 AM:

dave, this is great stuff, i have instaled the wijit on my site. i can't thank you enaugh

Donlyn Arbuthnot said, on April 26, 2008 8:52 AM:

Hi Dave, How do you manage it all? My Space, Facebook, Tweeter, Linkedin, youtube, flicker, my own blog not to mention iphone, ipod, i-i-i Geesh!
I could spend all of my time posting, updating, downloading, commenting, designing and redesigning - whew! Is there one way to manage it all? How do you get anything done? I fear that all the social networking, blogging, and online marketing won't have any time left in my day for the actual business.

Donlyn Arbuthnot said, on April 28, 2008 9:12 AM:

Oops! I didn't mean to add my comment to your post on the ligit widget - which I've added to my blog and love it! My comment was meant to be a general question.
Sorry about that! -- Donlyn on training wheels

abdul said, on June 17, 2008 7:35 AM:

Hey dave thanks a lott....
i have installed widget..in my frnds website..

Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!

I do have a comment, now that you mention it!











I will never send you any unsolicited email. Ever.






Check This Out Too...

 
Look for Answers
Need Help? Ask Dave Taylor!


Follow Me on Pinterest

Find Me on Google+
ADT on G+
© 2002 - 2013 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. My lawyer says "Thanks".
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.