Creative Custom Error 404 Page with Search Box

hacks

Error 404 page is important to hold visitors for longer time. Suppose a visitor didn't find any page then the visitors can go away another site. Generally in blogger default  page it will display like Page Not Found Error when any link not found or any invalid search query by visitors. Broken link is responsible for this. But we can simply make Error 404 page more attractive by adding some images where your visitors will attract to stay on your site. I have collection those custom 404 images from various sites and resize those for best match for your custom error 404 page. In addition I have added a search box where a visitors can search more deeply and relevantly. So let's proceed to the tutorial.

Live Demo

Step 1 Log in to your Blogger Account and Go to your Blogger Dashboard

Step 2 Click on  Now click on -> Template -> Edit HTML-> Unfold code  ?

Step 3 Now Find this code ]]></b:skin> by Pressing Ctrl+F  

Step 4 Paste the below code  Before/above ]]></b:skin> and Save the templates. 

/* Error Page by www.bloggerspice.com*/
.error-custom {
overflow: hidden;
padding:10px 15px 100px;
}
.error-custom:before, .error-custom:after, .error-body:before, .error-body:after {
position: absolute;
content: "";
height: 0;
width: 0;
border: 44px solid transparent;
}
.error-custom:before {
border-right-color: $(poside.head.color);
border-bottom-width: 114px;
border-right-width: 163px;
bottom: -44px;
right: 0;
}
.error-custom:after {
border-right-color: $(poside.head.color);
right: 0;
bottom: -12px;
}
.error-body:before {
border-left-color: $(poside.head.color);
bottom: -33px;
left: 0;
border-left-width: 106px;
border-top-width: 106px;
}
.error-body:after {
border-left-color: $(poside.head.color);
left: 0;
bottom: -66px;
border-left-width: 54px;
border-bottom-width: 106px;
}
</b:if>  

Step 5 Save your template now.

Step 6 Now go to Settings-> Search Preference -> Custom Page Not Found -> Edit

Step 7 Now Paste any code from below and Click on Save Changes

Custom Error Page Style 1


tips

<h2 style="font-size: 35px;margin: 0;text-align: center;">Oops..! </h2>
<h3 style="font-size:17px;">Sorry,You are trying to reach an invalid page...!<br><a href="/">Click here</a> to go to Homepage <br> Dig it Deeply...
<form action='/search' id='searchform' method='get'>
<input id='s' name='q' onblur='if (this.value == &quot;&quot;) {this.value = &quot;Search...&quot;;}' onfocus='if (this.value == &quot;Search...&quot;) {this.value = &quot;&quot;;}' type='text' value='Search...'/>
<input id='searchsubmit' type='submit' value='Go'/>
</form>
</h3><img src=" https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQa8LE9aeGQiNpkWwo8Tap9IPoiG8Ii-Sgi_31P6UZgol_QYXG9hgPQVm0KK6zW42294JfPNVTfGmb407_uUWpFBgf1B8A_qtxVhCnGebu3S7gY70h8hhPZp29k_BWEGsStQP_hWI_tEcj/s1600/17-error-404-page.jpg "/>


Custom Error Page Style 2


404 pages

<h2 style="font-size: 35px;margin: 0;text-align: center;">Oops..! </h2>
<h3 style="font-size:17px;">Sorry,You are trying to reach an invalid page...!<br><a href="/">Click here</a> to go to Homepage <br> Dig it Deeply...
<form action='/search' id='searchform' method='get'>
<input id='s' name='q' onblur='if (this.value == &quot;&quot;) {this.value = &quot;Search...&quot;;}' onfocus='if (this.value == &quot;Search...&quot;) {this.value = &quot;&quot;;}' type='text' value='Search...'/>
<input id='searchsubmit' type='submit' value='Go'/>
</form>
</h3><img src=" https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVk1sNJNKz5SN1k-tE0z4FWBn1_CHwYqB5j8VNbYFQdIgzNam8y44z1lgXgafOUBC9q9LT72Im8QrmvwkvC3HFIJwsXthBCcnig73tPBCFPwhiyFMnR1nqLSD2zEeDRQmCnNfCxanQ48nj/s1600/27-error-404-page.jpg"/>

Custom Error Page Style 3


awesome 404 page

<h2 style="font-size: 35px;margin: 0;text-align: center;">Oops..! </h2>
<h3 style="font-size:17px;">Sorry,You are trying to reach an invalid page...!<br><a href="/">Click here</a> to go to Homepage <br> Dig it Deeply...
<form action='/search' id='searchform' method='get'>
<input id='s' name='q' onblur='if (this.value == &quot;&quot;) {this.value = &quot;Search...&quot;;}' onfocus='if (this.value == &quot;Search...&quot;) {this.value = &quot;&quot;;}' type='text' value='Search...'/>
<input id='searchsubmit' type='submit' value='Go'/>
</form>
</h3><img src=" https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSNylf6vd13dTPTNeVJD1po-c7gofYob6-Yd2bfcHpQ9ARhsImaNk_9EV8wDwRHh229ebHypnHlgPrlboJogz9ZaP9K24LOex1vHe7WVMGRswjXvuhuSYyY4OHJdxzerXznZuVnqVOMoiv/s1600/28-error-404-page.jpg"/>

Custom Error Page Style 4


creative trick

<h2 style="font-size: 35px;margin: 0;text-align: center;">Oops..! </h2>
<h3 style="font-size:17px;">Sorry,You are trying to reach an invalid page...!<br><a href="/">Click here</a> to go to Homepage <br> Dig it Deeply...
<form action='/search' id='searchform' method='get'>
<input id='s' name='q' onblur='if (this.value == &quot;&quot;) {this.value = &quot;Search...&quot;;}' onfocus='if (this.value == &quot;Search...&quot;) {this.value = &quot;&quot;;}' type='text' value='Search...'/>
<input id='searchsubmit' type='submit' value='Go'/>
</form>
</h3><img src=" https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV29GtiR9-d8e1EwwowDtUwuDK6W2Q8mbd88aiDfvDCLmsCg3XiYqCJOaPiG2PCFGgTDJbrpvo8p7pU92xzTqiaNAvqa3_P1czRB2ET-VP0pWx9E6a0rvGDJB-viv3oBL0an4W4wj_Nvgp/s1600/29-error-404-page.jpg"/>

Custom Error Page Style 5


blogger tricks

<h2 style="font-size: 35px;margin: 0;text-align: center;">Oops..! </h2>
<h3 style="font-size:17px;">Sorry,You are trying to reach an invalid page...!<br><a href="/">Click here</a> to go to Homepage <br> Dig it Deeply...
<form action='/search' id='searchform' method='get'>
<input id='s' name='q' onblur='if (this.value == &quot;&quot;) {this.value = &quot;Search...&quot;;}' onfocus='if (this.value == &quot;Search...&quot;) {this.value = &quot;&quot;;}' type='text' value='Search...'/>
<input id='searchsubmit' type='submit' value='Go'/>
</form>
</h3><img src=" https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz3nhhp2PZZqwClbqzV4wLpuAhsODef3WY1YPkfbeUx3RkEw6k3gAD1JSIfete14joKmdD0qRC-fgsQ2QJwI6-XFOPpjNulDk5k5wbZQT93X_f_1Dlmn84qvAECjuq6MWi25_24vvVCC-O/s1600/40-error-404-page.jpg"/>

Custom Error Page Style 6


widget

<h2 style="font-size: 35px;margin: 0;text-align: center;">Oops..! </h2>
<h3 style="font-size:17px;">Sorry,You are trying to reach an invalid page...!<br><a href="/">Click here</a> to go to Homepage <br> Dig it Deeply...
<form action='/search' id='searchform' method='get'>
<input id='s' name='q' onblur='if (this.value == &quot;&quot;) {this.value = &quot;Search...&quot;;}' onfocus='if (this.value == &quot;Search...&quot;) {this.value = &quot;&quot;;}' type='text' value='Search...'/>
<input id='searchsubmit' type='submit' value='Go'/>
</form>
</h3><img src=" https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQnP_ej7gFiN2HoQdffqR2bwbIKYySeYd-wym78pEXkwgc8p5nXUeYrn6a_naPHVO1EcHECY5IZnl-CdtqYSYs5tGuH3VUGhyphenhyphenWHbxgJAycGEYllyGtJ64JsA7YbmDqP8113KbPxkEuP8hY/s1600/48-error-404-page.jpg"/>

If you face any trouble then feel free to contact with me. And I am expecting your feedback about custom error 404 page. Stay tune for more exciting release. 


EmoticonEmoticon