Learn how to add and style a welcome message in Blogger to boost engagement and enhance user experience.
An increasing trend in blog design is the “welcome message” which appears on the home page, explaining to new readers what the blog is about, and possibly with links to subscription/about pages which offer more incentive for return visits.
If you are using Blogger to publish your blog, you could add an extra widget above the main posts section in which such a welcome message may be added and edited with ease.
Once this section is added to your blog template, no further editing of the HTML code is required to change the message or it’s content: instead you can edit this section through the Page Elements section of your dashboard.
In this article, I’ll explain how to add an extra widget to your Blogger template which will appear above your blog posts and will only be visible on your blog’s home-page.
I will also offer some suggestions for how to create an effective and successful welcome message for your blog, along with other possible uses for this simple Blogger hack.
By default, your Blogger template will only display posts on your home page.
While your blog title and the thematic content of your posts may go some way towards explaining what your blog is about, a welcome message adds more impact and encourages new readers to return again.
To illustrate this, compare the following screenshots:
Blogger home page without a welcome message
Blogger Homepage with welcome message
Of the two, do you think the second homepage is more welcoming and enticing for a return visit?
Following this tutorial will help you create a similar welcome message to appear above your blog posts on the home page of your blog.
Although I have used the Minima template as the basis for this tutorial, the code examples given should also work smoothly for any Blogger template: both the default designs and customized themes supplied by third party providers.
To add our welcome message to our Blogger template, we need to add a widgetized area above the main posts section which will only appear on the blog home page.
This is achieved in just a few short steps:
Go to Layout>Edit HTML in your Blogger dashboard. Do not check the “Expand widget templates” box!
Locate the following section of code:
<b:section class='main' id='main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/>
</b:section>
Immediately before this section, paste the following few lines of code:
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<b:section class='main' id='main-top' showaddelement='yes'>
<b:widget id='HTML99' locked='false' title='' type='HTML'/>
</b:section>
</b:if>
Now when you go to the Page Elements tab of your Blogger dashboard, you will notice a new widgetized section appears above your blog posts widget, that currently contains a blank HTML/JavaScript widget.
Now we could simply add some content to this widget which would take on the same style as your blog posts, like this.
But since this doesn’t really make the welcome message stand out, we’re going to add some inline style to the content of the widget instead.
To ensure you can easily change the style and content of your welcome message through the Page Elements section of your Blogger dashboard, we are going to use “inline” css to make the welcome message stand out.
This is achieved by adding raw HTML code to the content of your widget; simply click on the “Edit” link for your widget, and ensure you use the “Edit HTML” editor rather than “Rich Text”.
Wrap your content in a DIV where styling is explicitly stated, like this:
<div style="your-style-properties-here">
<p>Your content here</p>
</div>
In the example pictured above, I used a soft yellow background, a little padding and added an image to ensure the welcome message is eye-catching and evocative of the content from my blog:
Here is the HTML code I used to make my welcome message appear in this way:
<div style="background: #efe7c2; padding: 5px 10px 10px;">
<h3>Welcome to my blog!</h3>
<img border="0" style="float: right; margin: 0 0 5px 5px;" src="URL-OF-IMAGE" height="75px" width="75px" />
<p>Here I can explain a little about my blog, and why you may want to read it.</p>
<p>I could encourage you to subscribe by providing a subscription link like this, or highlight one or two of my best posts.</p>
</div>
You could use this example as the basis for your own “Welcome” message by changing the hex color, wording and image location as required. Then save the content of your HTML/JavaScript widget to see these changes appear in your actual blog home page.
I hope this tutorial has helped you understand how to add a simple welcome message to your Blogger home page which can assist the recognition of your blog’s thematic content and possibly encourage return visits from new readers.
Please feel free to leave your comments and suggestions below.
Discover our favorite blogging tools, resources, and examples to build and scale a successful blog.