Home » , » Making A Gadget Visible Only To The Blog Administator

Making A Gadget Visible Only To The Blog Administator

Written By Unknown on Saturday 14 September 2013 | 20:44

Now the post title says it all. There are gadgets that sometimes we want to be visible only to us and not to other people.
The procedure is simple, we just have to add two lines to our gadget that we want to hide.


How to do:

Step 1: Go to Template > Edit HTML and then search for the gadget's code we want to hide by clicking  Ctrl + F.

As an example in a HTML/JavaScript gadget,we will see a code like this:

<b:widget id='HTML1' locked='false' title='' type='HTML'>
<b:includable id='main'>
<span class='item-control blog-admin'>
<!-- 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'/>
</span>
</b:includable>
</b:widget>
 Now all you have to do is add the parts in RED and ready to go. If you close the session go to your blog you'll not be able to view the gadget that you have hidden, but as soon as you sign in you will see that it is visible to you.

Not all gadgets have the same structure like in this example, but it will be easier to guide you, just place the first code in the red just after <b:includable id='main'>

And the second red code just before  </b:includable>

Note: To look inside the widget's code, click on the sideways arrow next to the widget's id.

And with that the gadget will be hidden for readers except you. 
Share this article :

Post a Comment

Featured Posts

Most Read

Catagory

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2013. 4 Blogging Tips - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger