September 22, 2009

Add A Welcome or Under-Construction Page To Blogger Blogs


This tutorial is requested by Rakero from CrakerLo Blog

Add a Welcome Page To Your Blogger/BlogSpot Blog.

See this hack live at Disqus In BlogSpot blog

Follow the instructions given below to add a similar page to your blog:

STEP #1
Log in to Blogger, go to "Layout" -> "Edit HTML"
and find (CTRL+F) this code in your blog template
</head>
Immediately ABOVE/BEFORE it, paste these lines of code:
<!--Welcome-UnderConstuction-Page-Starts-->
<link rel="stylesheet" type="text/css" href="http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/leightbox.css"/>
<script type="text/javascript" src="http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/prototype.js"></script>
<script type="text/javascript" src="http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/leightbox.js"></script>
<!--Welcome-UnderConstuction-Page-Stops-HELP-http://bloggerstop.net-->

STEP #2
Go to "Layout" -> "Page Elements" and click on "Add a Gadget" and select it as "HTML/JavaScript"
And paste this code into it:
<!----------// POPUP (AUTOLOAD) //---------->
<div id="pop01" class="leightbox">

<div class="scrollbox">
<h1>Welcome To My Blog</h1>
<p>A blog by <a href="http://bloggerstop.net">BloggerStop.Net</a></p></div>
<a href="#" class="lbAction" rel="deactivate">Enter The Blog</a></div>

<!----------// POPUP (AUTOLOAD script: add AFTER the autoload popup div) //---------->
<script type="text/javascript">
lb = new lightbox();
lb.initCallable('pop01');
lb.activate();
</script>
Change the code highlighted in Purple and RED, and save the widget.

NOTE 1: Remember to place this widget somewhere in the top region of your blog (above "blog posts" widget if possible), to make sure that this widget loads before other widgets.

NOTE 2: Under Construction page is often required in all the pages, but as welcome page is required only in the "HomePage", so use this tutorial to show the widget only in the homepage.

You can change the background overlay color and transparency by editing the leightbox.css file before uploading it.
Here's the code you have to change in the leightbox.css file.
div#overlay {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
background-color:#000; //color default - back
-moz-opacity: 0.8; //opacity default at 80%
opacity: 0.8; //opacity default at 80%
filter: alpha(opacity=80); //opacity default at 80% for IE
}

NOTE: To display this page as entirely different web page, set opacity and -moz-opacity at 1.0 (fully opaque)

Add an UnderConstruction Page to Your Blogger/BlogSpot blog

You may sometimes want to hide your blog partially (or make it inaccessible). Especially when editing any important part of your template, like sidebar or any widget.
So to hide your blog partially temporarily, use the same method as described above, but remove the option to enter the blog. You can do this by using this code in STEP #2
<!----------// POPUP (AUTOLOAD) //---------->
<div id="pop01" class="leightbox">
<div class="scrollbox">
<h1>Welcome To My Blog</h1>
<p>A blog by <a href="http://bloggerstop.net">BloggerStop.Net</a></p>
<p>This Page Is Under Construction</p>
<p>Sorry For The Inconvenience</p>
<p>Come Back Within An Hour :)</p>
</div>

<!----------// POPUP (AUTOLOAD script: add AFTER the autoload popup div) //---------->
<script type="text/javascript">
lb = new lightbox();
lb.initCallable('pop01');
lb.activate();
</script>

See a working example at Blogger Blogs UnderConstruction

You may download Under Construction images from AnimatedGif.net or WebWeaver

Credits
The original creators of Leightbox, a lightweight inline div solution to the popular Lightbox ajax solution, from the people at eight.nl.
Paul van Iterson from Quaint Tech for his article on his Leightbox ‘onLoad hack’.
Richard from pixelcised for fixing the script.

And CodeBook for the OnLoad functionality


44 comments:

Soufiane LeBlogger said...

vey usefull hack Divya, like always ...

50mn until blogger birthday, how are you going to celebrate it expect ?????

CrakerLo_Rakero said...

Aw~~ Arigato~!!!
Now i can start my story~
Thanks Sai, and all your hardworking!

CrakerLo_Rakero said...

*Sorry i missed the birthday >.<* anyway, late happy birthday~
And,
Questions
How to put own background?
The -moz-opacity-1.00 is not working to full screen,
How to put the 'Enter' bottom?

Reza Winandar said...

If you add the "under construction" page, how can you edit or modify the template without seeing it?

Divya Sai said...

Thank you Soufiane and Rakero...

@Rakero
Do you want to use any image as background, or color?

@Reza
Haha nice point, keep the opacity low(0.3/0.4) and edit the template, the blog still remains inaccessible

Divya Sai said...

@Rakero,

To shift the "Enter The Blog" to bottom, you have to edit and save the file "leightbox.css" before uploading it.

Presently the code in that file will be this:

a.lbAction {
padding: 0 3px;
text-decoration: none;
float: right;
position: absolute;
top: -20px;
right: -20px;
color: #000000;
border: 5px solid #000000;
background: #CCCCCC;
z-index: 102;
}


change it to this:

a.lbAction {
padding: 0 3px;
text-decoration: none;
float: right;
position: absolute;
bottom: -20px;
right: -20px;
color: #000000;
border: 5px solid #000000;
background: #CCCCCC;
z-index: 102;
}


you may also change float to left/center, i.e.

float: center;

Regards
Sai

CrakerLo_Rakero said...

Thanks for the answer of the "bottom"
and, How to fit it to full screen? it not work when im put it to 1.0, is it All Opacity?
And I wanted to put my own picture as background, but how to put that?

Sai @ Blogger Widgets said...

There are two different things Rakero...a central text box, and an overlay background, so tell me what exact combination you want?

If you want a full screen text box then background(color/image) will not be visible, and if you want to use a background image, then DO NOT go for full screen text box.

imran said...

thx fr a good hack sai!!!
-cp

Arham said...

NT ABLE TO DOWNLOAD FILES :(

Divya Sai said...

Once you visit the download page(CodeBook), right-click on the files and click on "Save target As"

Arham said...

oh k thanx a lot dude

Faye @ "GreenOrganicMama.com" said...

Sai, your blog has been a fantastic help!

I've got an award for you! It's a little "feminine", but Your Blog is Over the Top!

Thank you for sharing all of these great Blogger tips!

Faye @ GreenOrganicMama.com

Arham said...

dude
i wanna ask
tht y thw "BOX APPEARED" is very simple .. can v make it stylish or add sum colours or pics in it ?

Divya Sai said...

Yes you can edit the box....edit "scrollbox" element in the .css file.
Check out the example demos, I have added images in the box, and in the under-construction example, I have even added a contact form.

Divya Sai said...

@Faye

haha...thanks for the award Faye :)
am I supposed to blog it again, (with new list of winners ofcourse)?

asep canda said...

good post friends

Rajesh Kumar.Chekuri said...

cool but it's asking every time,
it's incompertable for site visitors ..
if it display when open home page or first time only then it's going to rock...


http://techtasks.blogspot.com A blog for multi purpose

Divya Sai said...

@ Rajesh,

not sure, but you may try this method:
http://highslide.com/forum/viewtopic.php?f=1&t=2017

Abijah Gupta said...
This comment has been removed by the author.
Abijah Gupta said...

People this actually works!!

Thnx a ton Divya...
I customized the HTML part a bit and got an awesome welcome screen!

Check out the preview at
abijahangelicdelight.blogspot.com

Thnx again.
-Abijah :)

snam said...

How do I get a box that fills the whole screen (so that it looks like a page instead of a widget)? I do not need images (it would be nice) but only text. Small images in the middle could work for me.

Also, could I put a video on the welcome page?

Divya Sai said...

Just change the dimensions of the box, presently it is:

width: 100%;
height: 100%;

write it in in pixels, recommended dimensions:

width: 1024px;
height: 768px;

you can add anything in to this widget, including videos, grab the video code from youtube and paste it in to the box (in STEP #2).

Kytro said...

thanks but how do we edit the css code

Sai - Blogger Widgets said...

Well, you can edit the code in step #1 too, but that is not recommended, you can do all your editing work in the step #2 itself, as it should be enough to most of your needs. BTW, what exactly do you want to change in the widget?

Anims 101 said...

This hack doesn't owrk on my website www.anims101.blogspot.com for some reason. Can you please tell me why?

ATT Prepaid Wireless said...

How can I change "about me" from defaulting to every blog I create; as my info different for every blog?

Sai - Blogger Widgets said...

Instead of the default "About Me" widget provided by Blogger, use a widget of your own. Inside a HTML/JavaScript widget type about yourself, or use this tutorial to create professional badges for all your blogs:
http://bloggerstop.net/2009/01/create-about-me-badge-customize-your.html

Anonymous said...

:)

Anonymous said...

sorry.... this is not spam just I wanna try emoticons above..

Silentwords said...

Thanks for this great widget but I want to add email subscription instead of welcome note so that when some come enter their email address and click on subscribe than welcome window disappear so how it will be possible. So please write up a solution for the same. Thanks

BSD said...

how can i restrict this widget for my home page only..i am not getting properly from the tutorial you have mentioned

http://bhojpuriallsongdownload.blogspot.com/

kash said...

hi there can we make blogger static page a Homepage....?

Zeegi said...

Which is better for introduction, this post or this http://bloggerstop.net/2009/09/display-your-homepage-like-bing.html

and if you have time check here http://zeegi-comix.blogspot.com/

Divya Sai said...

Both the tutorials use the same coding, go for Bing if you like the way Bing homepage has been disgined.

yoezac said...

how to insert animated gif underconstruction? :-/
reply....

Sai - BloggerStop said...

You can use a GIF image too, just make sure the site where you uploaded the pic, doesn't remove the animation and allows you to hotlink/direct-link the picture.

MST-INFO said...

You can use it just in the home page.

youhave to replace this widget to a new section.

and make a condition to show this section just in the home page.

MST-INFO said...

i forgot to post my blog , to see the example.

i used it in all the site.

Moustafa Amar Blog

Sai - Blogger Widgets said...

Great work buddy, but did you intentionally put an under-construction page or was it supposed to be a welcome page?

~BusaDude~ said...

Outstanding!

This is exactly what I've been looking for to implement into my new blog that is of course in the creation stage. I can tweek the html code, but was curious; you mentioned editing the css file but there was no link to upload this file. Did I miss something in your post somewhere?

Any advice is much appreciated.

Thanks.
Busdadude~

Sai - Blogger Widgets said...

The first link highlighted in red in the tutorial is the link to the css file used here. Download it:
http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/leightbox.css

Edit it and upload it to www.mdn.fm, and finally use the DIRECT LINK of your newly edited file instead of the one I'm using in the tutorial above.

Genk Betuah said...

I done what you said, yeah, it works, but, I can enter into my blog by clicking the enter box. why?

~x(

Liyana Zakaria said...

It doesn't happen as what I'm expected. Why??? hm..

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

comment on this post Share Your Views

Allowed HTML tags: <b>, <i> and <a>

Join and share your views with other bloggers at BloggerStop Community

Comment Like This! and Optimize your blog...

SPAMMER OF THE MONTH: www[.]MensItaly[.]com

Next Post Homepage Previous Post

Regular Readers


What They Say...

Divya Sai is the ingenious webmaster of Bloggerstop.Net. Divya is extremely patient, knowledgeable and responsive... Bloggerstop.net has an abundance of articles on creating widgets, templates, hacks and ways to make your blog search engine friendly.
- Stacey @Pets With Allergies
I stumbled onto a great site. Sai, over at Bloggerstop.net has helped me tremendously and with great patience...for any and all questions regarding computer issues. And again, THANK YOU Sai.
- Cheryl @Cmash Loves To Read

More Here...

Popular Posts

Get this widget

| © 2010 BloggerStop.net | Blogger Widgets | Template by Dicas Blogger | Enhanced By Divya Sai | Privacy Policy