I wanted to be able to click on a label or use the search box and have the results return only a list-- like this (this blog has also been modified so you can see what it looks like by clicking on a label or using the search box):
But I always ran into trouble implementing it. For example, sometimes I got it to work for the labels, but the search results looked like they always looked. Worse than that, sometimes, the code would effect static pages and remove all the information from the pages.
Finally, I stumbled on this post and with a little tweak, the hack seems to be working. He's updated the code to exclude very old posts, but I found that the newer code didn't work for search results. So I'm actually using his old code and I added a line to remove the dates from search results (a trick that comes up in the comments, but took me awhile to figure out so I've included that code below). If you would like to include the associated dates of each post with your search results, delete the following line from the full code below:
- Step 7: Replace the above code with the code below (you can just copy the code below (notice that the 1st and last lines of code contain descriptive information so you can find the code again later-- I use 'GusCode' so that's easy to locate, but you can always subsitute the text with something else)).
- Step 8: Save the template
HINT#1: Make sure you check the box for "Expand Widget Templates" otherwise you won't find the right code. HINT #2: The CTRL + F that pulls up the Firefox/Chrome search box at the very bottom of the browser... Login to blogger - layout - Edit HTML - click on "Expand Widget Templates" , Delete / replace the code above, change with the code below: