Home > Tutorial > Blogger Tips: Setting Up Homepage
Blogger Tips: Setting Up Homepage
Posted on Friday, October 15, 2010 by android apps market for tablests
I went through lots of articles on how to give your blogger (blogspot) a website look. By website look I mean a navigation bar (menu) and a homepage when you type in your domain, like the one I have here in my test blog:
By default your index page, which is the page that you'd get when you type in a domain, is the page where your main post body is located. Thus, when you visit a blog, you'd see posts in your index page. Whereas in a website, usually an index page is an introductory page, and you'd be able to click a tab from the menu to bring you to the blog/posts page. This is what we are trying to achieve in this tutorial.
One usual way is to publish a homepage post with it's date set far out in the future, so that it'd always be at top. Then the number of posts to be displayed on the main page is set to 1. This way, the homepage post will always be the first, and you'd have to click older post each time you want to read a post. That aint cool I thought.
In this tutorial, you'd be able to have a homepage, with no posts on it, and you can click on a tab to bring your reader to your posts. Like I said, less blog-like, more website-like. That's the advantage of this method. On the downside, this method is not so straight forward, and it involves some hardcoding. Something not so suitable for beginners, but feel free to try it out.
By default your index page, which is the page that you'd get when you type in a domain, is the page where your main post body is located. Thus, when you visit a blog, you'd see posts in your index page. Whereas in a website, usually an index page is an introductory page, and you'd be able to click a tab from the menu to bring you to the blog/posts page. This is what we are trying to achieve in this tutorial.
One usual way is to publish a homepage post with it's date set far out in the future, so that it'd always be at top. Then the number of posts to be displayed on the main page is set to 1. This way, the homepage post will always be the first, and you'd have to click older post each time you want to read a post. That aint cool I thought.
In this tutorial, you'd be able to have a homepage, with no posts on it, and you can click on a tab to bring your reader to your posts. Like I said, less blog-like, more website-like. That's the advantage of this method. On the downside, this method is not so straight forward, and it involves some hardcoding. Something not so suitable for beginners, but feel free to try it out.
I'd suggest you to use firefox while trying this. with FireBug add on installed.
Step 1: Create static pages.
Few static pages to be exact. Be sure to finalize all your pages and stuffs before trying out this tutorial. To create static pages:
Dashboard - New Post - Edit Pages - New page - and design whatever you want.
Usually static pages are Homepage, Archive, Links, Contact Me, Photos, etc. You can have up to 10 static pages.
Few static pages to be exact. Be sure to finalize all your pages and stuffs before trying out this tutorial. To create static pages:
Dashboard - New Post - Edit Pages - New page - and design whatever you want.
Usually static pages are Homepage, Archive, Links, Contact Me, Photos, etc. You can have up to 10 static pages.
Step 2: Create your menu bar.
To do this: Dashboard - Design - Page Elements - Add gadget - Pages - just click ok and place it below the header.
Next, you wanna click on edit, and rename your main page to Welcome or Homepage or anything you like. Also, include the dummy page (which I have named Post) and unthick the actual welcome page.
To do this: Dashboard - Design - Page Elements - Add gadget - Pages - just click ok and place it below the header.
Next, you wanna click on edit, and rename your main page to Welcome or Homepage or anything you like. Also, include the dummy page (which I have named Post) and unthick the actual welcome page.
Step 3: Place welcome page on the main page.
First go get the HTML code from your static welcome page. To do this, Dashboard - Posting - Edit Pages - and click edit on your welcome/homepage. Click on 'Edit HTML' view and copy the entire code there.
Next, we wanna add this code to the main page. To do this, Dashboard - Design - Page Elements - Add a gadget - HTML/Javascript - Paste your code there.
Place your Gadget above the Blog Post box. Now, you can see your homepage in all the pages.
First go get the HTML code from your static welcome page. To do this, Dashboard - Posting - Edit Pages - and click edit on your welcome/homepage. Click on 'Edit HTML' view and copy the entire code there.
Next, we wanna add this code to the main page. To do this, Dashboard - Design - Page Elements - Add a gadget - HTML/Javascript - Paste your code there.
Place your Gadget above the Blog Post box. Now, you can see your homepage in all the pages.
Step 4: Display homepage only in the main page and remove posts from main page.
Now that we have known our IDs, it's coding time. Go Dashboard - Design - Edit HTML - find for </b:skin> - Place the following below </b:skin>
Code explanation:
The first portion of the code is used to hide HTML gadget from all pages except mainpage. To use this in your blog, change the URL and the HTML gadget ID. The second portion of the code is used to hide posts from the mainpage. Again, customize this code by changing the URL and blog post's ID.
As of now, when you visit your blog's URL, you'll be greeted with your homepage, and none of your post will be visible on the front page. However, you've also noticed that there is no way for you to access your posts. Well, time for the next step.
It's time to get your gadget out - Firebug! Inspect what is the id/class of the html gadget and the main post. Click here to learn how you can find your gadget's ID. My main post's id is Blog1 and the HTML gadget's id is HTML2. Your post's ID is gonna be Blog1 most probably, but your HTML gadget's ID may vary.
Now that we have known our IDs, it's coding time. Go Dashboard - Design - Edit HTML - find for </b:skin> - Place the following below </b:skin>
<b:if cond='data:blog.url != "http://qwertyyyyyyy.blogspot.com/"'>
<style>
#HTML2{
display:none;
}
</style>
<b:else/>
<style>
#Blog1{
display:none;
}
</style>
</b:if>
Code explanation:
The first portion of the code is used to hide HTML gadget from all pages except mainpage. To use this in your blog, change the URL and the HTML gadget ID. The second portion of the code is used to hide posts from the mainpage. Again, customize this code by changing the URL and blog post's ID.
As of now, when you visit your blog's URL, you'll be greeted with your homepage, and none of your post will be visible on the front page. However, you've also noticed that there is no way for you to access your posts. Well, time for the next step.
Step 5: Customize Menu/Navigation Bar.
Use the new Blogger interface for this part, if you're not already using it. Go to Dashboard - Pages - New Page - Web Address. Paste the the address of your blog in the following format: http://yourblog.blogspot.com/search.html
The address must end with '/search.html'. Click on save then. The newly added page would have been added to your Pages gadget. You might wanna rearrange its position to appear at top.
You're basically done. You now have a link in your pages gadget that links to your posts!
Use the new Blogger interface for this part, if you're not already using it. Go to Dashboard - Pages - New Page - Web Address. Paste the the address of your blog in the following format: http://yourblog.blogspot.com/search.html
The address must end with '/search.html'. Click on save then. The newly added page would have been added to your Pages gadget. You might wanna rearrange its position to appear at top.
You're basically done. You now have a link in your pages gadget that links to your posts!
Step 6 (Optional): Margin fix.
When you visit your blog, you'll be greeted with your homepage now. You have a lovely set of menu at top, in which you can click on it to show your blog posts. But you might notice that the boxes for all the posts (except for your homepage) are a little bit down.
There's a quick fix for it. Use Firebug to see what's the id or class of the box. As in my case, it is known as column-center-inner. I want to pull it a little upward for all my pages except for my homepage, so this is the code that i'll use:
Place it below </b:skin>, similar to step 4. Voila, it's done!!
All these steps and what you achieve? A homepage with no posts to greet you and a menu which you can click on to bring to your posts. Worth it? For cosmetic purposes no, for hacking purposes yes. Happy trying.
When you visit your blog, you'll be greeted with your homepage now. You have a lovely set of menu at top, in which you can click on it to show your blog posts. But you might notice that the boxes for all the posts (except for your homepage) are a little bit down.
There's a quick fix for it. Use Firebug to see what's the id or class of the box. As in my case, it is known as column-center-inner. I want to pull it a little upward for all my pages except for my homepage, so this is the code that i'll use:
<b:if cond='data:blog.url != "http://qwertyyyyyyy.blogspot.com/"'>
<style>
.column-center-inner{
margin-top: -20px;
}
</style>
</b:if>
Place it below </b:skin>, similar to step 4. Voila, it's done!!
All these steps and what you achieve? A homepage with no posts to greet you and a menu which you can click on to bring to your posts. Worth it? For cosmetic purposes no, for hacking purposes yes. Happy trying.
Category Article Tutorial
Powered by Blogger.
Blog Archive
-
▼
2010
(1682)
-
▼
October
(153)
- Info New Offer "HTC T9199" Smartphone Windows Mob...
- Complete info Specification "LG E900 Optimus 7" Wi...
- Amazing Book Blogs Gadget
- Show/Hide Gadgets on a Specific Page
- myTouch 4G specs
- 10? Motorola Tablet Coming with Gingerbread
- Image Too Large When Clicked On
- Motorola Droid X and Droid 2
- Motorola Droid 2 discontinued at Best Buy, two Dro...
- Shopping Amazon with Windowshop app for iPad
- Apple sues Motorola: A look at the complaints | Wi...
- Will HP, Dell, Sony answer 11-inch MacBook Air? | ...
- Apple iPhone Leapfrogs RIM BlackBerry in Smartphon...
- UK MPs question Google over Street View data breaches
- More details on Nexus Two surface
- Samsung SGH-a187 GoPhone - blue (AT&T)
- Find your polling place and follow the US Election...
- Find your polling place and follow the US Election...
- iPad Touchscreen freaks out & screens self-registe...
- How the New MacBook Air, Slate Define Apple and HP
- Price New CDMA Phone "LG 6400" With Wireles FM Su...
- Info Price Offer For New CDMA Phone "LG 6300" With...
- New in Google Maps for Android: Updated reviews, s...
- New in Google Maps for Android: Updated reviews, s...
- New MacBook Air Doesn�t Come With Adobe Flash
- MacBook Air�s Revolutionary New Display
- Bring Your Phone to Work Day: Managing Android Dev...
- Bring Your Phone to Work Day: Managing Android Dev...
- Price With Specification "LG 6210" CDMA Phone
- Price and Review New "LG 6160" CDMA Phone
- Gmail in mobile Safari: now even more like a nativ...
- Gmail in mobile Safari: now even more like a nativ...
- RIP Paul the Psychic Octopus
- Angry Birds Halloween HD for iPad
- Mobile Windows Phone 7 Info Specification "HTC Tr...
- Review About Andoid Smartphone "HTC Knight" The L...
- Images Can't Be Clicked After Adding Captions
- PBS for iPad - Watch Your Favorite PBS Shows
- iPad Screen Orientation Lock Switch to Mute Button
- Complete Info product Android phone "Motorola Droi...
- Info Price and Specification QWERTY Phone "Vitell ...
- Publish Post in Blogger Static Pages
- Review Apple MacBook Air 13" MC503LL/A Notebook
- Info Product Specification and Price "Vitell V711"...
- Info Price and Specification "Vitell V709 " Mobile...
- My iPad Keynote slideshow auto-advancing
- Exchange mail crashes & iPad Looping Reboot of Death
- Which is Better ? HP Slate 500 vs. MacBook Air
- Gigabyte GSmart G1305 Boston
- iMockups for iPad - Mobile Wireframing & Mockup app
- Voice Search in Russian, Polish, Czech and Turkish
- Voice Search in Russian, Polish, Czech and Turkish
- New Info About Android Phone "Lumigon" Handset f...
- download Application Blackberry Messenger 5.0.1.41
- New MacBook Air at $999 Only
- Samsung will use Bada OS in future televisions
- Android 2.2 On All Galaxy S Before
- How to Customize Links and Tabs on Pages Gadget
- Local notifications with iOS 4.2 for iPad
- We Doodle for iPad
- Info Complete Specification "LG Optimus 7Q" Produc...
- Info Android Phone "ZTE R750" Low Price
- TED for iPad - Education app
- Old camera connection accessorry compatibled with ...
- Steve Jobs takes shots at Android and BlackBerry
- Info Specification New Varian Multimedia Phone "No...
- Product Info "Samsung I8700 Omnia 7" Lates Windows...
- Different Background on Different Page
- Netflix on Wii Now
- New Xbox Kinect games line-up unveiled
- 2010 New AMD Radeon HD 6870 and HD 6850
- Hand-E-Holder holds your iPad in hand
- iPad screen goes black intermittently
- Info about Windows Phone 7 handset "Dell Veneu Pro...
- Complete InfoSpecification about WP7 handset "LG ...
- Adding an Already Added Gadget
- Info Specification and Price 3G Phone "Nexian Spee...
- Customize Tabs on Pages Gadget
- New Offer Phone Product "Nexian Hybrid NX-271D" T...
- Dedicated Separate Archive Page
- Virtual Static Page with Selected Posts in it
- An iPad Controls Self Driving Car
- Blogger Tips: Setting Up Homepage
- New Nokia Phones With Lavender Of Greatness
- Nokia N900 gets MeeGo boot option
- Nokia C5-03 Diumumkan Symbian^1 Layar Sentuh
- Complete Specification Info about "HTC 7 Surround ...
- Price With Feature Review TV Phone "SPC Boss 100"
- iPad locked up after trying to install iOS 4.2
- iA Writer for iPad
- Info Complete Specification "Nokia 5250" Music Phone
- Info Specification Product Windows Phone "Samsung ...
- Transformers Leader Class Starscream Review
- iOS4.2 Beta 3 for iPad Now Available
- Complete Info Specification about "HTC HD7" Window...
- Leak about New Android 2.2 (Froyo) Smartphone "HT...
- Complete Info Specification "HTC Mozart " The Wind...
- Info Complete Specification "HTC Desire Z" Androi...
- Cut the Rope Game HD Lite
- Apple Wireless Keyboard Layout can't match iPad
- Search Federal jobs with USAJOBS
- The Worst Tech Ads of All-Time
- Pricing Leaks for Sony Google TV
- Firefox Beta Available for Android and Maemo
- Complete Info Specification Android CDMA Phone "S...
- Info specification Flip Phone "Philips F610 " Dua...
- Haypi Kingdom - Tips 2
- Motorola Bravo review spec
- Spice Mi-300 Spec full
- Adobe releases AIR for Android runtime
- Unveiled Three Samsung Wave phones with Bada OS
- Awesome Apple TV 2010 with iPad remote app
- Microsoft Licenses Palm Technology
- Nokia N8 Price, Nokia Specs, Nokia N8 Pics and Use...
- New info Specification CDMA Android Phone "Samsun...
- This is "Wigo T1" The Android Local Phone
- An easier way to use Google Latitude on your computer
- An easier way to use Google Latitude on your computer
- Information Product Music Phone " Nokia X3-02 Touc...
- Price Mobile "HT M20 Music" With Full Specs
- Move Your iPad to New Computer PC/Mac
- iPad issues: unable to move mail message to trash
- Open your eyes: Google Goggles now available on iP...
- Open your eyes: Google Goggles now available on iP...
- iPad Bricked Urgent issues
- AirPlay streams from iPad app to Apple TV
- Chimpadeedoo gathers email addresses from your iPad
- Fantastic Optical Illusion LED Watch
-
▼
October
(153)






