Wednesday, September 13, 2006

Adding a graphic to your blog header

Update 25 September 2008: The very nice graphic at Guide to Malaysia has been replaced by a leaderboard ad unit from Nuffnang. When there are no incoming ad, the ad unit is minimized to a tiny logo Nuffnang logo.


For an example of a Blogger Beta blog with a graphic above the header, surf to Cheap Airfares: Air Asia, Malaysia's success story and Testing Expandable Post Summary (close new windows to get back to this page). The difference between the two is that the image in the first example is clickable whereas the image in the second example is non-clickable. If you are in the archives or in an individual post page of the first example, clicking on the graphic will take you back to the main (home or index) page (or any other sites you choose, depending on what you want). Try clicking on the graphic in the first example and see where it takes you.

Adding a "Add a Page Element" (Page Element is now called Gadget) widget in the Blogger Beta Layout

This is how you can add a graphic to your header. Sign into Dashboard. For the blog you want to modify, click LAYOUT, then click EDIT HTML. Then look for this block of codes in the template:

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


Change maxwidgets='1' to maxwidgets='4'(or any other number greater than 1, or even leave a number out, then there is no maximum) and change showaddelement='no' to showaddelement='yes'. (you may also leave out the figure in maxwidgets='' in which case the number of widgets you can add to the header is unlimited). So the section should now be

<div id='header-wrapper'>
<b:section class='header' id='header' maxwidgets='4' showaddelement='yes'>
<b:widget id='Header1' locked='true' title='Replacing Blog Header (Header)' type='Header'/>
</b:section>
</div>


Click SAVE TEMPLATE. Then click PAGE ELEMENT tab to go back to LAYOUT. You will see an extra "Add a Page Element" above the Header.

Adding unclickable graphic in the Header of Blogger beta blog

Click "Add a Page Element" and a pop-up will appear. Select "Picture" and click "Add to blog". In the next page, there will be 4 fields and some radio buttons for you to click. The fields are "Title", "Caption" and two fields for image. It is best to leave the title blank. If (rarely) you want a caption below the image, then fill in that field with your caption, otherwise leave it blank. If you have your photo stored on your computer, click "Browse" (the radio button for "Browse" is already ticked by default), then select the photo from your computer.

You may also tick the radio button to load an image already hosted on the web if you know the URL, but if the image is not hosted by you, there may be copyright and bandwidth issues involved. If you select this option, just fill in the field for the image URL and click "Save changes". For this, the safest option is to tick "Shrink to fit" as you have no control over the size of the photo.

The advantage of this is you don't have to deal with any HTML, but the disadvantage is that the image is not clickable like in the first example: Testing expandable post summary (close new window to get back to this page).

Adding a clickable graphic to the Blogger Beta blog Header

There is another way to add a graphic to the header. First, you need to host your image somewhere on the web. You can host it with Photobucket (close new window to get back to this page) or you can host it with Blogger. If you want to host it with blogger, look at post Getting Blogger to host your pictures for your profile, etc. (close new window to get back to this page). You may be interested to read about a comparison between the two methods here: Comparison between hosting images with Blogger and with Photobucket (close new window to get back to this page).

You may also use Google Page Creator to host the image. After uploading the image, click on the link then copy the URL from the address bar in the page hosting the image (or right-click on the mouse and select "copy shortcut" to save the URL into clipboard.

Non-clickable image Header

Have ready the URL of the image. Now when you click "Add a Page Element", instead of selecting "Picture" select "HTML/Javascript" instead and click ADD TO BLOG. Then type <img src="URL of picture" width="W" alt="" /> into the HTML editor, where W is the width of the image you want displayed. This will have to be equal or less than the width of the sidebar. If you don't know the width of the sidebar, get to the template editor (click LAYOUT > TEMPLATE > EDIT HTML) and look for this block of codes

#sidebar-wrapper {
width: 150px;
float: right;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
}

This tells me the width of the sidebar is 150 pixels.

It will be good to type in some description of the image in between the quotation marks in alt="" as search engine cannot read images but can read the text in the alt tag. This will be an advantage to you if you want your blog to be easily found by search enginges. Another advantage is that if for any reason, the image cannot be displayed, instead of a blank box, the text withing the quotation marks will be displayed instead. The alt tag is optional and you may leave it out if you want. But putting some description between the quotation marks will be good for search engine which cannot read images, but can read the alt text. Also, if the image cannot be displayed for any reason, the text get displayed instead.

When ready, click SAVE CHANGES. Then in the LAYOUT, preview if you want, and click SAVE if you are satisfied. If you are not satisfied with the positioning of the elements, you can hover your mouse over the widget (then the cursor will change to a cross) and drag it to wherever you like.

Clickable Image Header

However, doing it in the manner above will still leave you with an unclickable graphic. If you want the image to be clickable so that it takes you back to the home page (or any other site you wish), you will have to write the image HTML this way:
<a href="URL of home page"><img src="picture URL" width="W" alt="" /></a>. This was the method used for the first example blog.

Adding other stuff to the Header

Note: Instead of just adding a graphic to the header for this blog, you can use the same method to add other things like text, etc. For example, to make a "sticky post" that always stay at the top of the page. You can do it the same way except that after clicking "Add a Page Element", for text, you have to choose TEXT and click "Add to blog". I have also tried adding an AdSense link unit to this beta blog Business, Travel and Leisure (cloce new window to get back to this page). The last time I did it, it didn't work unless I tamper with the script and remove the comment tags, but this time, it worked perfectly without having to change the script. Try it yourself. I have also tried to add a Google searchbar this way, but it still ended up with a non-working searchbar. To add a working searchbar, see this post: Putting a working Google AdSense searchbar in the Header of a Blogger Beta blog (close new window to return to this page).

Update. Putting the script for the Google AdSense search box directly now will result in a working search box. You don't have to do any tinkering.

Making a graphic


For the graphic I made at Guide to Malaysia, I just took a 640x480 pixels photo, crop it to size with the very good and free Irfanview, save and uploaded to photobucket. If you want a fancier graphic header, here is a very good tutorial that shows you how to do it with Photoshop: How to make a blog header graphic (close new window to get back to this page)

For the simple header in the second example "Good Health Information", I just use the very good and free Irfanview to make the graphic. For those not famalier with how to do it, I think I will do a post on that. When I do, I will add a link to that post here.

Getting rid of the text header

I personally believe that having a text header and a description in the header is good for search engine purpose, and I personally would not want to remove it. One of my blog reader did it this way. He retained the text header, but reduced its size to 1 pixel.

Now if despite what I said, you still desparately want to remove the header, as someone just commented, it can be done. Get into the template editor, and look for this block of code:

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


Change locked='true' to locked='false' (To add the graphic header, you would already have changed maxwidgets='1' showaddelement='no' to maxwidgets='' showaddelement='yes').

If you do this, to remove the text header, click EDIT in the Page Element for the text header, click "Remove Page Element" and the text header (plus any description) will be remove. (see screenshot below)

Page Element: text header removal

Update: If you want the text title to be incorporated into the image, it is better to add the image as a background, making sure the image and the text have contrasting color. See Adding an image as background for the blog Header. Alternatively, you can use the method described in this post Special fonts for your blog clickable graphic header without deleting the text title

234 comments:

«Oldest   ‹Older   201 – 234 of 234
Anonymous said...

Купить выпускаемую продукцию Samsung в сети фирменных магазинов чехлы для смартфонов самсунг Архангельск - следовательно получить высококачественное и устойчивое устройство, которое будет вашим незаменимым помощником в домашних условиях. Независимо от того, необходим ли вам мощный телефон, стильный телевизор или умные часы, вы всегда подберете себе уникальное решение у нас.Мы безостановочно расширяем ассортимент, для того, чтобы воплотить в жизнь абсолютно все запросы и предпочтения наших заказчиков.

Anonymous said...

Сеть фирменных online магазинов Samsung - Ваш личный ключ к инновациям и качественной электроники телевизоры samsung series 7 Нижний Новгород

Anonymous said...

Катя Милаш 25 фото https://cojo.ru/znamenitosti/katya-milash-25-foto/

Anonymous said...

Мы ценим ваше удобство и поэтому стараемся спроектировать закупку максимально приятной и простой.Вы можете выбрать товар, тот что вам необходим, создать заказ и далее оплатить его, не растрачивая много лишнего вашего времени. Помимо этого, мы понимаем, что в свою очередь ваше время драгоценно, в связи с этим все наши торговые центры смартфоны samsung galaxy 64gb цена Мурманск организуют быстрое и удобное документальное оформление покупки.

Anonymous said...

Наша сеть знаменитых магазинов онлайн смартфоны самсунг цена Мурманск предлагает не только приобрести выпускаемую продукцию, но также обрести полный спектр предоставляемых услуг. Наша фирма предлагает гарантийное и послегарантийное обслуживание, что в свою очередь позволяет лично вам не сомневаться в надежности и прочности вашей закупки. Можно всецело доверять нашим сервисным центрам, там где спецы легко устранят абсолютно любые поломки и окажут вам помощь с применением абсолютно любого вашего девайса.

Anonymous said...

Помимо этого, мы понимаем, собственно что ваше время ценно, по этой причине все наши торговые центры купить планшеты samsung tab 128gb организуют удобное и быстрое оформление покупки. Мы бережем ваш комфорт и поэтому стремимся организовать закупку максимально простой и приятной. Вы можете выбрать продукт, который вам нужен, заказать и далее оплатить его, не растрачивая вашего времени.

Anonymous said...

Samsung – первоклассный источник самых последних технологий и высококачественной электроники http://hzpc8.com/home.php?mod=space&uid=2313037

Anonymous said...

Осветление и тонирование волос HD фото https://cojo.ru/pricheski-i-strizhki/osvetlenie-i-tonirovanie-volos-33-foto/

Anonymous said...

Paige Turco лучшие картинки https://cojo.ru/znamenitosti/paige-turco-40-foto/

Anonymous said...

Прически парней 2023 (51 фото) - лучшие фото идеи с названиями UHD https://fotoslava.ru/pricheski-parney-2023

Anonymous said...

Прическа ежик панк (41 фото) лучшие картинки https://byry.ru/pricheska-ezhik-pank/

Anonymous said...

Фотки на аву для девушек милые фото https://fotoslava.ru/fotki-na-avu-dlya-devushek-2

Anonymous said...

Певица с короткой челкой (50 фото) галерея https://byry.ru/pevitsa-s-korotkoy-chelkoy/

Anonymous said...

Спокойной ночи пупсик картинки (48 фото) смотреть фото https://fotoslava.ru/spokoynoy-nochi-pupsik-kartinki

Anonymous said...

Прически для круглого лица (45 фото) - лучшие фото идеи с названиями крутые фото https://fotoslava.ru/pricheski-dlya-kruglogo-litsa

Anonymous said...

Красивые модные обои на телефон подборка https://fotoslava.ru/krasivye-modnye-oboi-na-telefon

Anonymous said...

Chelsea Players Wallpapers High Quality 100% free https://wallpapershigh.com/chelsea-players

Anonymous said...

Kim Kardashian Wallpapers UHD fast and free https://wallpapershigh.com/kim-kardashian

Anonymous said...

Hulk Screensaver Wallpapers high resolution for free https://wallpapershigh.com/hulk-screensaver

Anonymous said...

Allah Ke Naam Ka Wallpapers High Quality absolutely free https://wallpapershigh.com/allah-ke-naam-ka

Anonymous said...

I Can Do This All Day Wallpapers High Res absolutely free https://wallpapershigh.com/i-can-do-this-all-day

Anonymous said...

Light Pink Solid Wallpapers high res 100% free https://wallpapershigh.com/light-pink-solid

Anonymous said...

[Rapid Changes in Skin Type: Understanding the Causes and Solutions] I recently came across an informative article on beautyah.com titled Suddenly Oily: Causes of Rapid Changes in Skin Type https://beautyah.com/suddenly-oily-causes-of-rapid-changes-in-skin-type

Anonymous said...

Large Flower Print Wallpapers FULL HD fast and free https://wallpapershigh.com/large-flower-print

Anonymous said...

Simple Blue Aesthetic Wallpapers Fullhd fast and free https://wallpapershigh.com/simple-blue-aesthetic

Anonymous said...

Ww2 Tank Wallpapers fullhd for free https://wallpapershigh.com/ww2-tank

Anonymous said...

Приветствую! Хочу рекомендовать тебе заглянуть на страницу с коллекцией восхитительных картинок, посвященных самым маленьким и очаровательным созданиям на земле - щенкам! Этот набор из 48 искусно выполненных произведений подарит тебе незабываемый восторг и окунет в мир безграничной милоты и игривости. Не упускай возможность насладиться превосходными деталями историй, запечатленных на каждой картинке. Здесь есть все, чтобы поднять настроение и растопить сердце - картины щенков, которые просто невозможно не полюбить. Не упустишь шанс проникнуться нежностью и теплом, оставленными в каж Просмотрите его https://cojo.ru/art/schenki-arty-48-foto/

Anonymous said...

Если вы фанат ХК Барыс и интересуетесь их играми, то вам обязательно стоит посмотреть фото со всех матчей! На сайте fotoleto.ru вы сможете найти 48 качественных и увлекательных фотографий команды. Здесь вы увидите как игроков во время матчей, так и их эмоции после побед. Не упустите возможность окунуться в атмосферу хоккея и посмотреть закулисные моменты игроков. Для просмотра картинок ХК Барыс, перейдите по ссылке https://fotoleto.ru/kartinki-hk-barys/.

Anonymous said...

Привет, друзья!🌙 Вам охота прикоснуться к светлым и волшебным моментам перед сном? Тогда я могу смело порекомендовать заглянуть в эту удивительную галерею пожеланий спокойной ночи для женщины!🌟 Я сама просто влюбилась в эти 67 фото! Каждое изображение искрится теплом и умиротворением, словно невидимые руки укрывают добрым сном.🥰 Если вы тоже хотите погрузиться в атмосферу блаженного отдыха, то обязательно пройдите по ссылке и окунитесь в мир безмятежности и тихой гармонии.✨ Пожелания спокойной ночи женщине - это не только красивое выражение заботы, но и нежный заряд положительных эмоций, который несомненно подарит вам чудесные сны. Улыбнитесь и пусть вас окутает добротой этот ночной мир!💤💫 Заглядывайте сюда https://byry.ru/pozhelaniya-spokoynoy-nochi-zhenschine/ и пусть ваши сны наполнятся невероятной красотой!✨🌙

Anonymous said...

Приветствую! Хочу поделиться с вами отличной находкой - водостойкой фанерой по выгодной цене. Этот материал идеально подходит для использования в строительстве и отделке помещений, где требуется высокая влагостойкость. Удобный сайт Фанера.бел предлагает широкий выбор водостойкой фанеры различной толщины и габаритов, поэтому вы легко найдете то, что нужно именно вам. Спешите перейти по ссылке и ознакомиться с ассортиментом. Я уже им воспользовался и остался очень доволен качеством товара и уровнем обслуживания. Не упустите шанс приобрести надежный материал по выгодной цене!

Anonymous said...

Привет! Если ты ищешь стильные платья миди для своего гардероба, то обязательно загляни в галерею на сайте. Я недавно нашла там вот это великолепное классическое летнее платье и просто влюбилась! Оно идеально подходит для любого мероприятия или прогулки по городу. Красивый крой, приятная ткань и модный дизайн - все, что нужно, чтобы выглядеть потрясающе! Не упусти свой шанс и переходи по ссылке https://fotofakt.ru/klassicheskoe-letnee-plate, чтобы увидеть больше великолепных вариантов. Уверена, ты найдешь то, что ищешь! 🌸💃

Anonymous said...

Если ты любишь загадочную атмосферу, тайны и мистику, то советую заглянуть на creofoto.ru/mistika-art. Там куча классных картинок, которые просто непередаваемо передают все эти вибрации! Готовься к тому, что они заставят тебя задуматься и втянут в свой таинственный мир. Я сам уже провел там немало времени, и каждый раз нахожу что-то новое и захватывающее. Приятного просмотра, братишка!

Anonymous said...

Салат из печеных овощей - это что-то! Воспаленные овощи, все в пятнах от огня, настоящие мужики! Их аромат и вкус просто зашкаливают! Лежат на тарелке, как горячие штучки, и готовы к уничтожению! Если ты как я обожаешь печеные овощи, то обязательно посмотри публикацию тут. Там просто мама не горюй - куча рецептов на всевозможные печеные салаты, с фотками и пошаговыми инструкциями. Это просто кайф для всех поклонников вкусняшек с огня!

Anonymous said...

Хвост с челкой – это стильная и удобная прическа, которая придает образу неповторимость и изящность. Она состоит из двух частей – хвоста, собранного на высоте затылка, и челки, которая придаёт лицу особенный шарм. Современные техники и способы создания такой прически позволяют достигнуть потрясающего эффекта. Если вы хотите узнать больше о хвосте с челкой и узнать, как создать такую прическу самостоятельно, рекомендую посетить сайт https://cojo.ru/?p=542682. Там вы найдете 53 фото с различными вариантами хвоста с челкой и подробные инструкции по созданию этой стильной прически. Попробуйте что-то новое и выразительное – экспериментируйте с хвостом с челкой и будьте уверены, что ваш образ не останется незамеченным!

«Oldest ‹Older   201 – 234 of 234   Newer› Newest»