Skip to main content

Link to HTML widget title - How?

This article lets you know how to add link to the widget title of HTML/Javascript gadget. The article is split into two,

  1. Creating a HTML gadget.
  2. Adding link to HTML gadget.
How to create a HTML gadget?
  1. Go to Dashboard > Layouts
  2. Click on + Add a gadget
  3. In the appearing window, scroll down and add HTML/JavaScript gadget.
  4. Title it as newgadget, for easy identification.

How to add link to this title?
  1. Go to Dashboard > Template > Edit HTML.
  2. Click on the template code box, press Ctrl + F and find newgadget
  3. The code around it will look like,
    <b:widget id='HTML6' locked='false' title='newgadget' type='HTML'>
    <b:includable id='main'>
    <!-- only display title if it's non-empty -->
    <b:if cond='data:title != &quot;&quot;'>
    <h2 class='title'><data:title/></h2>
    </b:if>
    <div class='widget-content'>
    <data:content/>
    </div>
    <b:include name='quickedit'/>
    </b:includable>
    </b:widget>
  4. Find <h2 class='title'><data:title/></h2>
  5. Here, wrap <data:title/> with anchor tags like this.
    <h2 class="title"><a href="link"><data:title/></a></h2>
  6. Save Template.

Comments

Feeds for you

Blogger Language Confusions

In BHF, we recently had a great confusion on Blogger Platform language and Blogger Blog language. So I decided to go ahead and write in detail about it.

There are two important terms here to begin with,
Blogger PlatformBlogger BlogBlogger Platform is what you see when you go to https://www.blogger.com. The operating system that helps you write and manage your blogs on Blogger.

Who Is Lookup

Again as a part of Custom Domain Troubleshooting, we do Who Is lookup which gives us a handful of information.


What is Who Is Lookup?

Who Is lookup gives exactly what the name means. "Who Is". In addition to Who Is, this will give few useful information like,
Registrar InformationRegistered date and expiry information and so on.

How to do Who Is Lookup?