Showing posts with label Header. Show all posts
Showing posts with label Header. Show all posts

Sunday, June 17, 2007

How To Add A Backgound Image / Picture To Your Blogger’s Header

There are a few ways to add an image or a picture to a Blogger’s header as the background of blog’s title and description. However, some of the ways are more complex or need some changes to the HTML codes. I prefer the easy and simpler way.

Here are the steps of a simpler way to add an image to the Header:

1) Log in to Blogger. In the Dashboard, click “Layout” and it will bring you to “Template” >> “Page Element” tab.

2) Look at the Header’s Page Element at the top of the Layout which contains the title of your blog. Click “Edit” and you will get the following pop-up:



3) If the image for your header is saved in your computer, tick the option “From your computer” and click “Browse”. Then locate the folder where your image is saved.
If the image is hosted on the web, tick the option “From the web” and type the URL of the hosted image.

4) Click “Save Changes”. Then click “View Blog” to view the result.

NOTE:

a) If you don’t like what you see and want to remove the image, then click “Edit” again on the Header’s Page Element. In the pop-up window, click “Remove Image”, and then click “Save Changes”.

b) After doing the above steps, by default, the header image will be shown as the background of your blog title and description. In case you have a header image that already contains your blog title and description, you can also place the header image to cover the default blog title & description.
Here is how to do it:
Click “Edit” on the Header’s Page Element. In the pop-up window, you can see that the option “Behind title and description” under “Placement” has been ticked by default. Now tick “Instead of title and description” option instead. Then click “Save Changes”.

c) To get the best result for an image to be the header’s background, you should use the image that has the same width as the header of your blog. If you’re not sure what’s the width of your header, please refer to this post to find out: How To Find The Width Of The Header, Main Column And Sidebar Of The Blogger Templates

d) In case you’d like to change the title and description alignment (e.g. to be left-aligned instead of centered-aligned), you can read the following post:
How To Change The Text Alignment For The Blog Header’s Title And Description


You might be interested in the following topics:

* How To Add A New Page Element (For Adsense Ads or Image / Picture) In Blog Header Of Blogger Templates

* How To Add A New Page Element (For Adsense Ads/Link Unit, Google Search Bar, or Text)
At The Top Of The Main Column (Blog Posts) Of Blogger Templates


* Some Tips To Solve Problems in New Blogger

* How To Change The Width Of The Blogger Templates

Thursday, June 14, 2007

How To Add A New Page Element (For Adsense Ads or Image / Picture) In Blog Header Of Blogger Templates

The updated Google Adsense Program Policy allows the publishers to place maximum of 3 Link Units on a single page, instead of 1. One strategic place to put Link Unit is below or above the blog header, as it works like a navigation link.

To do so in New Blogger template, we need to add a new page element widget at the blog header part. However, the New Blogger templates, both standard and modified templates available in the web, generally do not provide an “Add a Page Element” widget to add a page element at the blog's header part.

To add a new page element at the blog’s header part, we need to make some changes to the template codes. No clue how to do it? Don’t worry. It’s quite simple actually.

Here are the steps to add an “Add a Page Element” widget at Blog Header:

1) Log in to Blogger. In the Dashboard, click “Layout” and it will bring you to “Template” tab. Then click “Edit HTML”. This will open the template editor window.

2) Please remember that every time before you make any changes to the template, save a copy of your original codes first. In case there is something wrong, you can get back your original template again.
(Read this post in case you are not sure how to back up your template: How To Backup Your Blogger Template Codes).

3) Find the following codes in the template editor:
(You can simply click Ctrl+F for find the keyword <div id='header-wrapper' in the codes).

<div id='header-wrapper'>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Your Blog Title (Header)' type='Header'/>

4) Look particularly for the following:

a) maxwidgets='1'. Change it to: maxwidgets='3'.
You can change the number depending on how many widgets (maximum) you’d like to add at the header.

b) showaddelement='no'. Change it to: showaddelement='yes'.

After you change this, save the template by clicking “Save” button.

5) After that, click "Page Elements". Now you can notice that an additional "Add a Page Element" has been added at the Header".

Yes, it’s done. Now you can add a page element at the header part.
For example:
To place Adsense just below the blog header (e.g. to place an Adsense’s Link Unit under the header), firstly generate the Adsense codes (for Ads Unit, Link Unit or Google Search Bar) from your Adsense account.
Then click the "Add a Page Element” button at the top of the “Header”.
When a new window pops up, select “HTML/Javascript”, and then click "Add to blog".
Paste the Adsense codes into the box, and click "Save changes".
Then we can place the adsense under the header simply by dragging the new page element below the blog header.


Related Posts:

* How To Add A New Page Element (For Adsense Ads/Link Unit, Google Search Bar, or Text) At The Top Of The Main Column (Blog Posts) Of Blogger Templates

* How To Change The Text Alignment For The Blog Header’s Title And Description

* How To Add A Backgound Image / Picture To Your Blogger’s Header

* How To Change The Width Of The Blogger Templates

* Some Tips To Solve Problems in New Blogger

Tuesday, June 12, 2007

How To Change The Text Alignment For The Blog Header’s Title And Description

Suppose the text alignment of the blog’s header (for blog’s title and description) is center. However, you prefer the text alignment for the blog’s title and description to be left-aligned, instead of centered-aligned.

Here are the steps to change the text alignment of the header:

1) Log in to Blogger. In the Dashboard, click “Layout” and it will bring you to “Template” tab. Then click “Edit HTML”. This will open the template editor window.

2) Please remember that every time before you make any changes to the template, save a copy of your original codes first. In case there is something wrong, you can get back your original template again. (Read this post in case you are not sure how to back up your template: How To Backup Your Blogger Template Codes).

3) Find the following codes in the template editor:
(You can simply click Ctrl+F for find the keyword#header” in the codes to have a faster search).

#header {
margin: 5px;
border: 1px solid $bordercolor;
text-align: center;
color:$pagetitlecolor;
}


4) Change “text-align: center” into “text-align: left”.
So, the codes should be as follow after the change:

#header {
margin: 5px;
border: 1px solid $bordercolor;
text-align: left;
color:$pagetitlecolor;
}


5) To see the effect of the changed codes, click “Preview” button at the bottom of box (always do this first before saving it). If the result looks fine, save the codes by clicking “Save” button.


You might be interested in the following topics:

* How To Add A New Page Element (For Adsense Ads or Image / Picture) In Blog Header Of Blogger Templates

* How To Add A New Page Element (For Adsense Ads/Link Unit, Google Search Bar, or Text) At The Top Of The Main Column (Blog Posts) Of Blogger Templates

* How To Add A Backgound Image / Picture To Your Blogger’s Header

* Some Tips To Solve Problems in New Blogger

* How To Change The Width Of The Blogger Templates