Showing posts with label display. Show all posts
Showing posts with label display. Show all posts

7.8.09

Fixing the search function in Wooden Fence Theme for Blogger

This is just a quickie for anyone who is using this template (originally a wordpress theme which has been converted for blogger), or would like to use this template, and doesn't know why the search function takes them up, up & away, instead of, you know, searching your blog.
It is a really simple edit, but I didn't know that last night! After trying for an embarrisingly long time to insert complex code here & there (I am a complete & utter coding dunce), I finally stumbled on the easiest fix ever... then wanted to pummel my head against my desk for not working it out sooner.

So, without further ado....!

Go to "Layout" > "Edit HTML"

You need to find the following piece of code, the easiest way to do this is by pressing "Ctrl+F" this will bring up a search or find box at the top of your browser window. Type in 'search' & you will see that it comes up with around 10 instances in your code where 'search' is written. Click 'Next' until you come to this code;




<!-- Search -->

<div id='mainsearch'>


<form action='http://demo.templatelite.com/?q=Search' id='mainsearchform' method='get'>


<input class='input' id='s' name='q' onfocus='doClear(this)' type='text' value='Search ...'/>


<input class='submit' type='submit' value=''/>

</form>



Change this bit;



<!-- Search -->

<div id='mainsearch'>


<form action='http://demo.templatelite.com/?q=Search' id='mainsearchform' method='get'>


<input class='input' id='s' name='q' onfocus='doClear(this)' type='text' value='Search ...'/>


<input class='submit' type='submit' value=''/>
</form>


to your blog's search, ie: 'http://YOURBLOGHERE.blogspot.com/search', Click 'Save' & your done! :D

The other thing you might want to sort out with this theme is how it displays the time above your post & not the date. Go to "Settings"> "Formatting" & change the TIME display to the long date format. Voila!


Hope this has been of some help to other coding noobs! ;)


LinkWithin

Blog Widget by LinkWithin