Sunday, April 22, 2012

Finding the gadget ID for a widget in your blog

This article shows you how to find the "identifier" for a gadget in your blog.  This isn't useful in itself, but is a set in various other template customizations, including putting a gadget on a single page only.


Sometimes you need to find the code-name for a gadget that you have added to your blog, so you can edit your template and control how and where that gadget is displayed.

This may be part of giving your blog a home-page, controlling how your blog looks on mobile devices, or various other tweaks.

Luckily this is very simple.


How to find the id-code for any gadget:

"gadget", "widget", and even "page-element" all mean the same thing.  I generally use "gadget", because the Page Elements tab currently says "Add a Gadget".  But they're absolutely the same.


Add the gadget to your blog in the usual way.

Edit it again, but don't make any changes to it.

Maximise the window, so you can see the very end of the address bar in the window - at the top of the screen.

Note the word there, entering in a number.   This is the Gadget-id.

In this example, it's Text1,   Other possible values are HTML1, Attribution1, Followers1, etc.


Picture of the widget-settings window, showing the widget-id in the browser address bar at the end of the address


What does the number mean?

The digits at the end of the widget-id show to the number of times that a gadget of this type has been added to the blog:  in a complicated situtation, with lots of gadgets of the same type, it can get into double, or even treble-figures.)



Related Articles: 




Controlling what goes on the homepage

Adding a gadget / widget / page-element to your blog

Editing your blogger template

Putting a gadget on your static-pages only - or your home page

adsense

0 comments:

Post a Comment

 
 
Copyright © blog
Blogger Theme by Blogger Designed and Optimized by Tipseo