Skip to main content

Putting A Post At The Top (A "Welcome" Post) - Part 2

Many people have asked how they can have a Welcome or Index message in their blog.

I have a Welcome message, at the top of Nitecruzr Buzz, or on this blog, for instance.

This blog uses a text gadget, positioned above the post gadget, which leaves a gadget that shows up on every page. On Nitecruzr Buzz, I used a future dated post, so my "Welcome" showed up only on the "Home" page. Neither solution was optimal.
  • A true "Welcome" message should show up only on the "Home" (first) page. A text gadget shows up on every page.
  • A future dated post shows up only on the "Home" page, but it shows up in the Archive index with a future date.

Today, I fixed my Buzz Welcome message, so it only shows up on the "Home" page, and it does not show up as a post, in an archive index.

What I now have is a Text gadget, that only displays on the "Home" page. Here's how you do that.

First, (you should have to ask?) backup the template. Then add a Text gadget to the page, and position the gadget just above the post gadget. Give it a snappy title, "Welcome To My Blog!".

Then tweak the new gadget.
  1. Identify the gadget to be tweaked.
  2. Add the Conditional Gadget CSS rule, using the Template Designer "Add CSS" wizard.

  <b:if cond='data:blog.canonicalUrl != data:blog.homepageUrl'> <style> #Text1 {display: none !important;} </style> </b:if>

Remember to add a blank line, above or below the code block being added, if there is already code visible in "Add CSS".

Save the change. Edit the text gadget as displayed on the blog, and remove the "WelcomeMessage" title. And of course, backup the template, again. And, it's done.

Now, if you want a dynamic "Welcome" page - maybe one based on posts published to a given label, you can do that too, with just a bit more work. And there are several variations on the "if" statement, that will let you selectively display (or not display) your gadget on other specific pages.

An easy alternative solution for this need, more recently offered, would be to use a static page, and a redirected Home page.

The choices are multiple. Just consider your needs, and how easy the various alternatives may be.


mrclm said…
This. Is. Amazing. Seriously, thanks for putting this guide together. Works perfectly - used it at Waseca VBS site.
eo said…
Thank you!

I had two big problems.

1. No permanent "Welcome Post" at top, and

2. The BIG problem: only 1-2 posts showing up on home page. I did your answer to #1 and it also fixed #2!


By the way, do you know why doing #1 also has appeared to fix #2?

Thanks again, Sarah
amy said…
thanks for the clear instructions. it worked, but is there anyway to get rid of the "No posts" message?
Chuck said…

"Showing 0 posts" is the status message, which can be removed by editing the post template.
Thanks, it worked, but how do I have a photo only appear on the Home page?
Chuck said…

Why not add a Photo gadget, and setup the Photo gadget to appear on the Home page - just as you do an HTML / Text gadget?
Rob said…
Thank you, thank you! Now we have a blog customized to be more like a site for our fledgling Gourmet Nut business.Great resource.
J.S.Watts said…
I just tried and the text gadget disappeared from ALL pages including the hompage :-(
Shawn C. Parker said…
Placing the code to make the welcome show only on the homepage did not work! And the post editor will not allow 0 posts. The lowest number you can use is 1. Anymore ideas?
Shawn C. Parker said…
I'm sorry it actually did work!...still shows sidebars. Can we do it without showing the sidebars?
Chuck said…

You can suppress the sidebars, using conditional style sheet code. I have that guide in the works.
Ernest said…
thank you. this really helped!
ICU Library said…
Amazing! It did work. Thank you for the guide. It really helps. Though, I didn't use the Text gadget, I just used the HTML/Java Script gadget and followed the guide and inserted the under the widget. Again, thanks!

Quick, Easy and Healthy Recipes
Elizabeth said…
you rock!
jdat747 said…
Awesome, thanks for the incredibly well organized and detailed explanation of how to do all this
.brittney. said…
I posted this question on another part of this tutorial, but it's driving me crazy, so I thought I would post it here, too, just in case...

I wanted to ask you if it's possible to use two conditional codes for one widget/blog element? For example, if I only wanted my labels widget to appear on two static pages and no where else. Is this possible? Thanks ever so!
.brittney. said…
Amazing tutorial, btw! ^_^
Thank you, N-Buzz (is this your name?) This is exactly what I wanted to achieve. But it has a problem on my blog -- when I click on a Topic, the page will display, in the place of that "Welcome message" a box saying "Showing newest posts with label bibliography. Show older posts" -- How can I make this disappear? It should be either The welcome message or not come up! Thanks,
Great post! I used it and it worked. It was simple and looks good. Thanks.
GnC said…
The conditional statement removes the contents of the gadget, but it does not remove the gadget altogether. There is still a small empty space left, which is also apparent on your own page. If you use a gadget background that is different from the blog background you will see the gadget as a narrow empty block. Is there a way to remove it completely?
what if i want an image to stay at top
HELLO said…
I followed your instructions but the welcome test message is still appearing at the top of all my 'pages'. Is there anything I may have overlooked? I've checked and double checked your code that I copied and pasted. Thanks!
nobody said…
Thank you! It really worked!!
vipinlalt said…
Good it worked thanks for this effort.................
Ambika said…
I cannot thank you enough. Works perfect.
FinancialAgents said…
Ok, this is a very nice solution, even though, i wish the fixed welcome post at the begining to be the same size of the posts. i want it to look as a post in the future date because i have clumns at the sides and i dont want them at the bottom of the welcome post but aside.

Popular posts from this blog

Custom Domain Migration - Managing The Traffic

Your blog depends upon traffic for its success.

Anything that affects the traffic to your blog, such as any change in the URL, affects the success of your blog. Publishing the blog to a custom domain, like renaming the blog, will affect traffic to your blog. The effects of the change will vary from blog to blog, because of the different traffic to every different blog.Followers. People who find your blog because of recommendations by other people.Search engines. Robotic processes which methodically surf your blog, and provide dynamic indexing to people who search for information.Subscribers. People who read your content from their newsfeed reader, such as the dashboard Reading List.Viewers. People who read your content from their browser.No two blogs are the same - and no two blogs will have the same combinations of traffic sources.

Stats Components Are Significant, In Their Own Context

One popular Stats related accessory, which displays pageview information to the public, is the "Popular Posts" gadget.

Popular Posts identifies from 1 to 10 of the most popular posts in the blog, by comparing Stats pageview counts. Optional parts of the display of each post are a snippet of text, and an ever popular thumbnail photo.

Like many Stats features, blog owners have found imaginative uses for "Popular Posts" - and overlook the limitations of the gadget. Both the dynamic nature of Stats, and the timing of the various pageview count recalculations, create confusion, when Popular Posts is examined.