Creative Custom Error 404 Page with Search Box

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 </head> by Pressing Ctrl+F  

Step 4 Paste the below code  Before/above </head> 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/AVvXsEhiIhqG_G-jn2mNQ_uJwr40P9-re9lYof-kov_hbD2yPhMEJaYwZDndzUcDvxSI_rDVW9-cJ6bXTeyJGidJVwoKbiO5psJrFsrjiRPjMPtEfPj6clS5ePhYdRyCXafgNAlE4dkXaAKNTw3I/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/AVvXsEgFrXQNbQU4VqAiYryljoxjj4zTVM-PGAz2S5V0m6FIemNo8avKJ6D5O5Ht8J0Ked4V7WR_ah5zegdXtcbIY4GAOsPMxT9Mc2x2kfXHaY50bLsCrYC4Qq0oRjtCm0NZUhTCClivMiP3deUl/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/AVvXsEjr9bPnjF_OCkNhUL69yEVd-yX_tfsbxB-gaHVjkHNSfTBg9SFK2gxQuHmUxCSEhUr3_PL3iAbakyVdPNs-SklJuip-FWasxuGWT-4wmjsuaSNUcgAtsrZq_9fWwK322WEXgdKLP1_OORdD/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/AVvXsEgaoT-9Pf91plaPXShuzHa1VjuAX1ZKOXsrCZPeNDiquocsE5q41QO8VSMrlzexxuLQBMUGRMAIPayNn3zu9lDkkuiLW35dvkU5sXuy9tsFuvBspPdz_YACQ3pKwjPJcWsBmd6W-Ga4-zxs/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/AVvXsEhcoRguO7PlINXjTEq04x-HnVjRMn0oaDq1fW3SFaGnTOe_xlKfI0JnfEkyTyDlJf65UXPltcvKQ2xXgtyaFRP1XsJkXAvUQXXLyru_4wOiIbCtSf0IV3_3gipeOUKuXsmIOF326luY273I/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/AVvXsEgIrkg0wxktt2auUoSJ3ezLjbFnWPOgfxMnN5nL8oQgzn1Myu2_iqNHOgvTWipzvHpxWCW3zD6bTXBT0eLiHTs2PYfkw2JNn3CcuCQd_668iVI7G3LE4I8Z7P62SCtzsHaJ_210WN0vvLkc/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. 
Go Up