We accept already discussed that Search is the necessary business office of the blog/blogspot as well as whenever your users brand search over it the resultant page shows results sorted past times relevance for the hand query for example:
Many of you lot desire to change the order as well as would similar to set "Sort By Date" every bit the default sorting order non "Sort past times Relevance" thence that your viewers tin hand notice meet your latest posts starting fourth dimension without clicking on link each fourth dimension to alter the order. This method industrial plant solely amongst third political party search boxes. Follow the given steps carefully.
How To Set "Sort By Date" As Default Sorting Order
Step 1. Login to your Blogger account, as well as then navigate to your third political party Search Box code.
For example:
<form action="/search" method="get"> <input type="text" name="q" placeholder="Type Here..."/> <input type="hidden" name="max-results" value="8"/> <input type="submit" value="Search" /> </form>
Note: The inwards a higher house code may vary.
Step 2. Find the code </form>
as well as glue the next code but inwards a higher house it.
<input name="by-date" type="hidden" value="true"/>
For Example:
<form action="/search" method="get"> <input type="text" name="q" placeholder="Type Here..."/> <input type="hidden" name="max-results" value="8"/> <input type="submit" value="Search" /> <input name="by-date" type="hidden" value="true"/> </form>
Step 3. Save your code.
Read: How to Change Status message on search consequence page
Enjoy!
Jump into your weblog as well as brand a search. Wait! What? your search consequence is sorted past times date non past times relevance. Remember code may vary according to your search box, if the inwards a higher house tutorial doesn't operate for you lot don't worry - comment below. Stay Updated, Browse ! :)
0 comments
Post a Comment