After changing my blog theme from wsCorvette to Brightness. I began to modify the theme heavily and now the look and feel of this website vary from its original desired perspective. Take a look at the author’s demo site to see how the actual theme looks like.

Bug spotted! or something that’s not properly done or probably the theme is not designed to provide such feature. The search result page is not properly rendered. If you try to search for something that return zero result, things will look like this:-

In the section Latest 10 Articles, it will show you 10 latest post entries posted. However, it is used to display the search result which is not the issue here, yet.

Issue is, things look ugly when there is zero result returned (as you can see on the above screen shot). (Click here for proof - Search the term ‘lalaladumb’)

In addition to that, when you have more than 10 records returned, you will be limited to 10 records only as it has been logically programmed to loop 10 times through the result array. (Click here for proof - Search the term ‘a’)

The search form can only be added at the sidebar and I found it not too convenient for visitors to search for the search form to search for something they want. (Sorry for my obsession of repeating the word search so many times )

The solution:-

I have added a search form replacing the title “Latest 10 Articles”. There are two buttons to click catering different needs. One will return result from Google and the other will utilize Wordpress built-in search engine. The later one is provedĀ  useful in returning result in blog entries form.

  • Fixed zero result bug. Displays proper error page when there is no result returned.
  • Able to display result of more than 10 (or any other default value set in Brightness settings) simply by utilizing WP-PageNavi
  • Google search result returns in the main page as well.

See to believe.