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

Popular posts from this blog

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.

Meet a spammer

Let me start by a warning, This blogpost has nothing to do with howtoblog and is a story of a spammer.

Years ago we had to face a spammer in the forum(Probably during Pistachio?) who was very persistent. He was a link dropping spammer who kept sharing his blog URL under every reply in the forum and somewhere to his blogposts which merely had instructions from Blogger Help Centre.

It went as,
Thanks and Regards,
HIS NAME
HIS BLOG URL Probably it was so difficult for TCs to make him go away as I happened to see him for months, spamming in the forum and one fine day he disappeared and never returned.

I happened to find him and interview him which I am writing down here,

How to connect any other profile in "About me" widget?

In this article I am going to tell "How to connect any other profile in "About me" widget along with blogger or Google+?"