Skip to main content

Getting the HTML code to put a picture into your blog's sidebar, header or footer

You can use the Post Editor to get the HTML code that you need to put a picture into your sidebar (or header or footer, or anywhere else a gadget can go).



The Picture gadget is the normal tool for adding a picture to your blog's sidebar.

But sometimes you want more control over the picture size or behaviour.  Eg, you may want to have two pictures very close to each other and guarantee that they're the same size.

To do this, you need to get the HTML code for the picture, and then put it into your blog as an HTML-gadget.  Fortunately, Blogger's Post-editor make it very easy to do this without writing the code yourself.


Using the Post Editor to generate the HTML for a picture

1  Start a new Post  (NB   you're not ever going to publish this:  it's just a work-area)

2  Don't enter any text:   just use the Picture icon on the toolbar to add a picture.   Blogger will prompt you to upload the picture, or to choose it from a Google-album-archive or to enter its URL:  add the picture the way that you usually would.

3  Switch to the HTML tab   (top left of the editing window).

This show you the HTML code for displaying the picture, as it is set to display in the Post (depending on the picture-settings you've chosen, it may be centered or right/left aligned, and the size may vary).

4  Copy the HTML.

5  Switch back to Compose, so that you don't get confused the next time you edit a post.

6  Return to the list of posts:  you may be asked if you want to leave the page without saving - the answer is Yes.  Or you may have a new draft-status post, which you can delete.



Job Done!   You now have some HTML code in your memory which you can paste into an HTML/Javascript gadget, or anywhere else that you may need it - even into another post that you are editing in a separate window, or into a totally different tool.



Related Articles

Stopping pictures on your blog from being "clickable"

Inserting a Picture into a blog Post.

Putting 3rd party HTML into your blog

Center-align the gadgets on your blog

Hosting pictures outside of Google / Picasa

Inserting a picture into your blog as a gadget

Comments

Popular posts from this blog

How to rename picture files in Picasa-desktop

This article is about re-naming files from within Picasa-desktop, to provide SEO benefits for your blog. Picasa's desktop software is a good tool for organizing and editing photos on your local computer.   And it is still available for you to use, even though Picasa-web-albums has been replaced by Google Albums + Google Album Archive. For pictures that are important in your blog, I still recommend preparing them in a tool like Picasa-desktop and then uploading the finished versions to Google Photos before putting them into a post, because: The desktop tool has better editing tools (cropping, zooming, auto adjustment, adding watermarks) and Picasa-web-albums does. It lets you control the size of the uploaded file It's easier to ensure sure that you still have full-size files on my local machine for printing etc, as well as smaller, more optimized, copies to use on web-pages. Picasa-desktop folders have a very nice relationship with files and directories with the Windows file s...

Get notified about changes in popularity of pages on your blog/site.

This Quick-Tip describes the alerts that Webmaster Tools are now offering for changes in search popularity of particular pages. Google Webmaster Tools have added to their alerts features. Basically, this means that they try to notice the changes "that could be most interesting for you", and send the website owner a message when they spot something. You can view these messages in the Webmaster tools site, or by signing up inside Wesmaster Tools to have alerts forwarded to your email. The newest(*) alert they added is for Search Queries.   ref:    http://googlewebmastercentral.blogspot.ie/2012/08/search-queries-alerts-in-webmaster-tools.html This features shows "impressions and clicks for your top pages over time." They say "For most sites, these numbers follow regular patterns, so when sudden spikes or drops occur, it can make sense to look into what caused them. Some changes are due to differing demand for your content, other times they may be due to technical...

Turning the RSS feed off or on again

By default, public Blogger sites offer an RSS feed.  But there may be times when you need to turn it off, either for good or temporarily. RSS and Blogger Previously I've explained what RSS is and why it's important for bloggers . But there may be times when you want to turn off your RSS feed , either because you don't want to offer one at all, or because you want to make some posts, or changes to existing posts that are not notified to  your RSS subscribers. Or you may need to turn it back on again - for example, if you want to use a dynamic template , to offer a subscribe-by-email option , or to enable automatic posting to Google +. How turn off a blog's RSS feed:] In post-Sept 2011 Blogger (aka the new interface): Go to the Settings > Other tab. Under " Site Feed ", use the drop-down to change Allow Blog Feed to "None".   (This is the only option that totally turns your feed off:  the others, including Custom, leave some aspects of the feed...