Take a look at the home page of my site, Just Great Film, to see an example of this in action (click on images for full screen previews):
Here's an easy way to restrict the display of a gadget to your blog's home page.
Back-up your existing template
Before making any changes to the HTML code of your Blogger template, it's advisable to make a backup of your existing, working template code, just in case you make a mistake when editing or accidentally save unwanted changes!To make a back-up of your Blogger template, simply go to Layout>Edit HTML in your Blogger dashboard and click the "Download full template" link near the top of the page.
This will prompt you to save your existing template file as an .XML document to your computer, which you could later upload if you need to restore your theme.
About "Conditional" Tags
"Conditional" template tags enable us to dictate the type of page in which the enclosed content can be displayed.In this example, we are restricting the display to the home page only, and will be using the following syntax:
<b:if cond='"data:blog.url==data:blog.homepageUrl"'>
<--Content to be displayed on home page appears here -->
</b:if>
Anything which appears between the <b:if> tags will be displayed only on the home page. We can add any HTML content between these tags, including Blogger template tags.
If you're confident editing the template code of your blog, you can adapt the code snippet to suit your requirements. Or read on for the simplest way to add this function to your template.
The simplest way to add a featured content section on your blog's home page
If you're using Blogger's new template editor (the new format for Blogger templates) you can add a featured content section in a few simple steps:- Go to Layout>Edit HTML and locate the following section of code:
<div class='region-inner tabs-inner'>
<b:section class='tabs' id='crosscol' maxwidgets='1' showaddelement='yes'>
<b:widget id='Text2' locked='false' title='Some Title' type='Text'/>
</b:section>
<b:section class='tabs' id='crosscol-overflow' showaddelement='no'/>
</div>
Depending on whether you have installed a Page Links (or other) gadget, you may also see other gadgets housed within this section - Add the following lines (highlighted in red) to this section of your template code:
<div class='region-inner tabs-inner'>
<b:section class='tabs' id='crosscol' maxwidgets='1' showaddelement='yes'>
<b:widget id='Text2' locked='false' title='Some Title' type='Text'/>
</b:section>
<b:section class='tabs' id='crosscol-overflow' showaddelement='no'/>
<b:if cond='data:blog.url == data:blog.homepageUrl'><b:section class='tabs' id='crosscol-homepage' showaddelement='yes'><b:widget id='HTML1' locked='false' title='Add title if you want to' type='HTML'/></b:section></b:if></div>
This will add an additional gadget section (beneath your tabbed page navigation, if present) in which you can add home-page-only content via the Page Elements section of your dashboard.
I've added a placeholder gadget in this code so you can easily identify the section when editing your gadgets in the Page Elements section of your dashboard. - Now preview your template: if all goes well, you should see your gadget appear in place above the posts without error and can proceed to save your template.






It took a minute, since I already had an "HTML1" but I got that figured out. Now to get some other widgets to just show up on the home page . . .
ReplyDeleteThank you for this, but where can i get the gadget you are using? Looks really awesome!
ReplyDeleteHey Amanda,
ReplyDeleteThis looks pretty cool, but in fact I already knew how to do this. Do you know a way to show only the most recent post in Blogger in a different style than the others or something like that?
Thanks for all your tuts!
Uriah
Hi - thought i'd try this but having problems - I'm not very good with code (as if you couldn't guess).
ReplyDeleteI've found the right place to insert but I keep getting an error 'duplicate html1'. The reader above had similar problem but unfortunately for us simpletons didn't share the fix.
Any help here appreciated.
Also, once the change is working, I'm presuming you get some sort of extra 'widget' to customise with content in the normal way or does teh content require more code hacking? If so, where do we insert that?
Cheers - Jonathan
Thanks. I've been on the lookout for this kind of blogger widget. Can't wait to test it out on the blog!
ReplyDeleteJonathan-just change the number from html1 to another number like 100 and this should resolve your problem. You just can't have two widgets with the same number in your template code. Good luck.
Hi Jenn - thanks for that - must have been having a Doh! moment back there.
ReplyDeleteSo - I've got a customisable 'gadget' in my layout, now how do I turn that into a slide show / feature post gadget?
Jonathan.
thanks for tips. i ill try on my blog
ReplyDeletehey Amanda i want to know can i ad more than one post to a new page other than home page so it will show as post by post in new page.
@Uriah W - It should be possible to have a different style for the most recent post using CSS selectors (:first-child). I did experiment with this a while back though it wasn't particularly easy as the markup of the new templates is heavy on divs so I had troubles applying targeting. I will look into it again though as soon as I've finished writing up the next post =]
ReplyDelete@Jonathan Crouch - I'm working on a simple tutorial for a slider right now (hopefully to be published tomorrow). Almost any javascript-based slider/slideshow could be adapted for use with Blogger, but I hope to write up a tutorial which makes the process simple.
Blessings, my default red text showed: We were unable to save your template
ReplyDeletePlease correct the error below, and submit your template again.
More than one widget was found with id: HTML1. Widget IDs should be unique.
Is a declaration as such needed in my template attributing where code was obtained? **SAMPLE:
\ *__*
kudos jonathan crouch
\ *__*
-=-=-=-=-=-=-=-=-
I, support a Creative Commons Sharealike Attribution Noncommercial licensure
Hi - me again.
ReplyDeleteI got a 'featured post' widget working on the blog I write - http://solarpanelquoter.blogspot.com/ after a lot of trial and error.
I found these two posts quite helpful -
http://www.blogspotvision.com/2009/11/how-to-add-clean-slick-featured-content.html
http://www.hacktutors.info/2010/09/stylish-jquery-featured-post-widget-for.html
Although the 'background images' weren't available so I'm making my own.
Also, I found it hard at first to get my head around the sizing of the overall widget (since I've put my 'gadget' above the blog posts rather than the header (which caused background problems with the nav / pages bar widget)_
I'll post a full how-to with examples of my doctored code and some hints on image sizes etc later.
Oh and one tip - for the background and main 'slide show' images, I saved them in a draft blog post so blogger is effectively hosting my images.
Keep with it guys - if I can crack it, then anyone can.
Jonathan.
Hi - finished and working - here's a link to the code i used including the widget code with the sizes for how I've styled the featured content to appear.
ReplyDeletehttp://solarpanelquoter.blogspot.com/p/code-share.html where you'll find a downloadable text document with everything you need (except images but I have included some handy notes on sizes etc).
Good luck with it.
Jonathan.
@Jonathan Crouch - So glad to read you've managed to install a featured posts widget =] I had a rather busy day and haven't managed to write up a tutorial for the widget I use on Just Great Film yet, but plan to do so asap.
ReplyDeleteGreat tip for using Blogger to host images for the widget by the way. I usually use Picasa to host template images for free (especially as I can upload en masse) though your method would be just as effective.
You might also want to check out Google Code for free hosting any scripts (or even zip files of your code if you want to make them available for download). It's another incredibly reliable method for hosting stuff which we can't (yet) upload directly through Blogger.
Thank you for sharing your techniques!
Hi Amanda
ReplyDeleteThanks for that - I've really learned so much from following your tips and posts here.
I'm no code whizz-kid and to some my 'widget' may look a little crude - still some style elements to play with when I get a moment - but it works and it's live.
I look forward to seeing your code - much prefer the visual look of yours on Just Great Film.
Cheers - Jonathan
p.s I'll look into the file sharing on google although I don't expect any server load issues for my little old text file. ( a man can dream though )
Furkan
ReplyDeleteNice template,thanks for share
ReplyDeleteDear Amanda,
ReplyDeleteI've been dying to add a featured content widget on my blogger blog, envious of all the beautiful ones I see on my friends' Wordpress blogs. So thank you so much for addressing this need! I can't wait to get your code for the Great Film widget as it looks very professional. Thank you for sharing all of this valuable info on dressing up our blogger blogs.
Vanessa
Usefull tips, thanks alot :)
ReplyDeleteI have the followers box on my blog but none of my followers in it, is there a problem today with followers or is it bcos I added a new background.. I have checked out some other blogs and they have the same problem.
ReplyDeleteThanks for the great info!
ReplyDeleteits similar trick like hans blog...
ReplyDeletehttp://beautifulbeta.blogspot.com/2009/02/selective-display-of-widgets.html
nice tutor...
nice to meet you master Amanda ^^
ooh. I will try it later. thanks for tips. thanks for sharing. :)
ReplyDeleteVery useful tips. Thanks for sharing :)
ReplyDeleteLearn how AlgoZone can help you with your business. If you have any questions about our products and service, please do not hesitate to contact us.
very nice mad added sites
ReplyDeletenice tips check out
ReplyDeleteKarachi Girls Here this blog
http://www.girl.pk.blogspot.com
That was a nice and helpful small tutorial. Thanks for sharing.
ReplyDeleteFinally. I got it! thanks for this tutorial :)
ReplyDeleteVery cool, I'll have to bookmark this and try it on the next special I'm planning for my blog!
ReplyDeletethis is totally useless, don't call your article "how to add a featured content section" if you're not going to tell how to add a featured content section.
ReplyDeleteHi Amanda
ReplyDeleteI am really looking forward to trying out this tutorial over the weekend. I have also learned something new from the comments: Google Code! I can't believe I never stumbled on it before.
and thanks to Jonathan for thinking out loud for us!
Thanks for the share and thanks for your patience and sorry for the inconvenience!
ReplyDeleteVery cool, Thanks for this tutorial.
ReplyDeleteI use it to my site, it works very well.
http://www.netdohoa.com/
Thanks!
sex
ReplyDeleteporn
free porn
porn
free sex
free sex
porno
escort bayan
So thank you so much for addressing this need! I can't wait to get your code for the Great Film widget as it looks very professional. Thank you for sharing all of this valuable info on dressing up our blogger blogs.
ReplyDeletegucci outlet
bailey button triplet boots
ugg bailey button triplet
ugg boots sale
louis vuitton speedy
prono sporifs
ReplyDeletebonus poker en ligne
ReplyDeletebonus poker en ligne
ReplyDeletejeu grattage
ReplyDeletemeilleurs bonus bingo
ReplyDeleteprono sporifs
ReplyDeletebonus sans depot casino
ReplyDeletecasino en ligne bonus
ReplyDeletecasino en ligne bonus
ReplyDeleteprono sporifs
ReplyDeletemeilleurs bonus bingo
ReplyDeleteonline baccara
ReplyDeletebaccarat casino
ReplyDeletecazinou
ReplyDeletekeno gratuit
ReplyDeletecasino en ligne bonus
ReplyDeletejeux casino
ReplyDeletegiochi casino online
ReplyDeletejeux backgammon
ReplyDeletecasino en ligne bonus
ReplyDeletejeu casino
ReplyDeletecasino en ligne bonus
ReplyDeletecasino en ligne bonus
ReplyDeletecasino en ligne bonus
ReplyDeletemachine à sous en ligne
ReplyDeletemachine à sous en ligne
ReplyDeleteThanks !!!
ReplyDeletecasino VN
ReplyDeleteNice post.Thank you for taking the time to publish this information very useful!
ReplyDeleteThe author has written an excellent article. You have made your point and there is not much to argue about. It is like the following universal truth that you can not argue with: No truth is universal, everything has its exception. Thanks for the info penis enlargement penis enlargement pills VigRX Plus
ReplyDeleteGracias, justo buscaba esto!
ReplyDeleterutinas de gimnasio
This can be a fantastic website and I am unable to recommend everyone enough. Filled with helpful resource and great layout super easy around the eyes. Please continue this excellent work
ReplyDeletethanks you nice post
ReplyDeleteThis is one of the best post I've ever seen, you can include some more ideas in the same theme. I'm still waiting for some interesting thoughts from your side in the next post. One thing I just want to say is that your blog is so perfect!
ReplyDelete@ Vimax, Vimax pills, VigRX Plus, Penis Enlargement, Penis Enlargement Pills
And this is also one of the most bizarre comments I've ever seen on blogosphere
DeleteVery nice, thanks a lot.
ReplyDeleteThaks a lot bro
ReplyDeleteVery cool, Thanks for this tutorial.
ReplyDeleteI use it to my site, it works very well.
Thanks for the share and thanks for your patience and sorry for the inconvenience!
ReplyDeleteParse HTML
satibo online:http://www.naturalpills2u.com/satibo.html
ReplyDeleteWodibo:http://www.naturalpills2u.com/wodibocapsule.html
sex medicine:http://www.naturalpills2u.com/
vigrx:http://www.naturalpills2u.com/vigrx.html
woman:http://www.specialitybrand.com/category/60.html
ReplyDeletesatibo online:http://www.specialitybrand.com/tags/satibo-capsule.html
Mojo Warrior:http://www.specialitybrand.com/product/mojowarrior.html
Satibo:http://www.specialitybrand.com/product/satibo.html
sex medicine:http://specialitybrand.com/
女性用媚薬:http://www.001kanpo.com/product/227.html
ReplyDelete威哥王:http://www.001kanpo.com/product/55.html
紅蜘蛛:http://www.001kanpo.com/product/228.html
媚薬: http://www.86and81.com/Charming-medicine.html
ReplyDelete精力剤: http://www.86and81.com/Energy.html
威哥王: http://www.86and81.com/product/55.html
曲美: http://www.86and81.com/Product/189.html
アナスイ
ReplyDeleteANNA SUI
アナスイ 通販
アナスイ 財布
アナスイ 財布 通販
アナスイ 財布 二つ折り
アナスイ ポーチ
三便宝
ReplyDelete巨人倍増
威哥王
SEX DROPS
脂肪燃焼
三體牛鞭
シアリス
三体牛鞭
催情剤
ru486 販売
福源春
唯美ob蛋白
唯美
補腎助陽
肥滿
v26 カプセル
v26 薬
v26
紅蜘蛛 通販
巨人倍増 販売
levitra
くらはちほう
新一粒神
小情人
ベニクモ
D10 媚薬
ハナチ
D5 原液
夜の健康食品
西班牙蒼蝿水
魔根
御秀堂
痩身一号
韓国痩身1号
媚薬蟻王
早漏防止薬
日本秀身堂
SUPER FAT BURNING
新陳代謝
VigRx
性欲減退
勃起改善
ED治療
精力剤
レイバン
ReplyDeleteRay Ban
レイバン 通販
ray ban サングラス
レイバン サングラス
レイバン サングラス 通販
レイバン 偏光サングラス
レイバン 偏光
偏光サングラス
レイバン wayfarer
レイバン ウェイファーラー
レイバン ティアドロップ
レイバン クラブマスター
レイバン CLUBMASTER
RB2140
レイバン メガネ
レイバン めがね
レイバン 眼鏡
レイバン 伊達メガネ
レイバン フレーム
レイバン メガネフレーム
サングラス スポーツ
レイバン サングラス スポーツ
Its a great tutorial for featured post. Thanks author for this useful info about blogger platform
ReplyDeletegucci outlet Fool, Snow Wolf is our trump card, and point you to disclose information, they are just like you scout, but cattle than you. Blue Army commander says proudly, as if he had foreseen victory in general. TYbhLQ
ReplyDeleteoutlet gucci online Video watching, and following me and everyone here that there is an image in Hanoi in country Y, their domestic radicals, big parade in the streets burning our country nationals, the local government turned a blind eye, which has brought to China incalculable loss, and the other picture is the country's warships Y, Wei recently to seize our West Beach reefs, which has serious violation of our territory, they are provocative challenge to our country, our People's Liberation Army in the challenge. Zheng Hongming said excitedly banged the table.
gucci outlet mall Horses, thousands of miles on the line, Dushu climbing, Rulvpingdi, the name Red Rabbit: Special offer and Xiandi to help Tiger. "Cloth will pull over to make
gucci outlets Home son? "God can not be. Chenliu Wang refers to God, saying:" This is the current emperor, was the chaos Ten Attendants, fled to this. Wu Nai Wong www.cheapguccioutletonline.com
"I was just wondering, would it be possible to only enable the featured post widget for the front homepage so that when a post is clicked it switches off and when a visitor clicks a category it also switches off but comes back on only when the home page is visited.Would it also be possible to add the Post ID to the Suffusion theme options featured section so you can pick individual posts from within there if using the main content section of your blog or if not then have another widget section directly above the main content so you can add the featured posts widget there.
ReplyDeleteYou might ask why would i want to switch the featured content section only on the home page, well i'm thinking from a design point of view it looks better to not have it on when viewing a full post and it also saves a little on the page loading time for anyone finding the site from Google and going directly into a page, it just looks nicer to only have it on the home page ( i think )
So is this possible."
Thanks
ReplyDeletethanks for this tuorial, very helpful
ReplyDeleteFolks, how do you do today??
ReplyDeleteRegards, Mikes
http://the2girlsteachsex.com/
Luv that folks.
ReplyDeleteMikeman,
Packed with relevant information.
Nice, thanks for this tutorial master
ReplyDeletecomplicated miss...
ReplyDeleteits very good man
ReplyDeleteسعودي انحراف-
كيوت-
شات صوتي-
سعودي انحراف-
سعودي كول-
سعودي كيوت-
دردشة صوتية-
سعودي كام-
شات سعودي-
شات سعودي انحراف-
دردشة سعودي انحراف-
شات صوتي سعودي-
شات صوتي نسائي-
شات نسائي-
شات سعودي كام-
شات سعودي صوتي-
شات كول-
شات كام-
شات صوتي-
دردشة صوتية-
على مودك-
شات على مودك-
منتدى سعودي كول-
منتدى كيوت-
كيوت-
-سعودي جنان-
مشكلة النكات-
توبيكات كيوت-
دليل مواقع-
شات سعودي كول-
دردشة سعودي كول-
شات -
دردشة-
Great Post Thank u so much
ReplyDelete-
الريم-
-
شات الريم-
-
شات-
-
شات صوتي-
-
الريم-
-
منتديات الريم-
-
الريم-
-
شات صوتي-
-
شات صوتي سعودي-
-
صوتي-
-
دردشة صوتية-
-
شات كتابي-
-
شات الريم الكتابي-
-
كتابي-
-
دردشة كتابية-
-
الريم-
People often listen to music than people who don't listen to music life long 5-10 years. why humans would react in a specific music environment?
ReplyDeletewho don't listen to music life long 5-10 years. why humans would react in a specific music environment?
ReplyDeleteIt is real helpful work indeed. Hope it will work with great efficiency. Any update should be available here and congrats for the work.
ReplyDeleteFrom what I can tell, the way to customize the appearance is to add the class prefix ".mobile " to additional style statements in order to customize the appearance in mobile browsers. Not had time to try it much yet, but will do my best over the holidays so I can write up a post.
ReplyDeletesex video
asian sex tube
free teen
latin sex porn
secret porn
cute porn
sexy teen
cd porn
hot porn tube
sex video
fac sex
sex movies
xxx videos
teen sex
porn movies
porn videos
search porn tube
redtube
red tube
xnxx
porno
lesben porno
This is EXACTLY what I have been looking for, and works like a charm! I can't believe there is such a siple solution to a problem I thought no one could fix. Thanks so much!!
ReplyDeletewww.3monkeysandamartini.com
I'm not able to disable my slider,
ReplyDeletei want my slider to appear only on my home page, also want to increase the speed of my web site, please suggest me how i can do it.
www.fnsecure.in
This is my site link.
アバクロ Tシャツ:www.afinjapan.com/category-491-b0.html
ReplyDeleteアバクロ カップル:www.afinjapan.com/category-521-b0.html
アバクロ ショートパンツ:www.afinjapan.com/category-508-b0.html
アバクロ 長袖Tシャツ:www.afinjapan.com/category-494-b0.html
アバクロ スカート:www.afinjapan.com/category-525-b0.html
アバクロ ジャケット:www.afinjapan.com/category-493-b0.html
アバクロ メンズ:www.afinjapan.com/category-486-b0.html
アバクロ ジーンズ:www.afinjapan.com/category-492-b0.html
アバクロ 通販:http://www.afinjapan.com
ReplyDeleteアバクロ 新作:http://www.afinjapan.com/category-527-b0.html
アバクロ ダウン:http://www.afinjapan.com/category-499-b0.html
アバクロ ダウンベスト:http://www.afinjapan.com/category-530-b0.html
アバクロ メンズ:http://www.afinjapan.com/category-486-b0.html
アバクロ レディース:http://www.afinjapan.com/category-500-b0.html
ホリスター:http://www.afinjapan.com/category-518-b0.html
アバクロ カップル:http://www.afinjapan.com/category-520-b0.html
アクセサリー:http://www.afinjapan.com/category-522-b0.html
アバクロ ダウン:http://www.afinjapan.com/category-499-b0.html
アバクロ ダウンベスト:http://www.afinjapan.com/category-530-b0.html
アバクロ ダウンジャケット:http://www.afinjapan.com/category-529-b0.html
アバクロ Tシャツ:www.afinjapan.com/category-491-b0.html
アバクロ シャツ:www.afinjapan.com/category-489-b0.html
This is such a nice addition thanks
ReplyDeleteشات عرب كول
شات صوتي كول
عرب كول
دردشة عرب كول
شات صوتي
شات عربي
سعودي كول
دردشة عرب كول
شات صوتي عربي
شات سعودي
شات سعودي كول
شات صوتي كول
شات انحراف كام
شات انحراف
شات سعودي انحراف
انحراف كام
شات سعودي انحراف
شات انحراف كام
شات كول
سعودي كول
شات سعودي كول
شات صوتي
شات صوتي مغربي
شات بنات كول
بنات كول
شات
صوتي
عربي
كول
شات صوتي مغربي
بنات كول
رياضه عالميه
فن ومشاهير عرب
أخبار عرب كول
الطب والجمال
جرائم وحوادث
راديو BBC Arabic
تلآوات قرآنيه
إتصل بنا
This is such a nice addition thanks
عرب كول
شات كول
انحراف كام
شات صوتي
سعودي كول
شات صوتي مغربي
شات بنات كول
شات صوتي سعودي
شات صوتي عربي
Nice info
ReplyDeleteThank you for your help, i will use your info on my blog...
ReplyDeleteI really love coming here to have a very good blog. sohbet chat
ReplyDelete