Thursday, September 5, 2013

Making a gadget visible only to the blog administrator

Making a gadget visible only to the blog administrator

Making a gadget visible only to the blog administrator
Thursday, September 5, 2013
Making a gadget visible only to the blog administrator - Hallo TRENDING NEWS, In the article that you are reading this time with the title Making a gadget visible only to the blog administrator, we have prepared this article well for you to read and take the information in it. hopefully the contents of the post Article how to, Article Widgets, what we write you can understand. all right, have a nice reading.

Title : Making a gadget visible only to the blog administrator
link : Making a gadget visible only to the blog administrator

Related Post


Making a gadget visible only to the blog administrator

And the post title says it all. There are gadgets that sometimes we want to be visible only to us and not to our blog readers, perhaps a Survey already ended that we want to keep, a counter, or any gadget that while we customize, we don't want anyone else to see until the final result is ready.
 The procedure is simple, we just have to add two lines to our gadget that we want to hide.

First thing to do is to go to Template > Edit HTML and then search for the gadget's code we want to hide. It will be easier using the CTRL + F keys and locating the name of the gadget/widget.

For 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>
All you have to do is add the parts in red and ready. 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 my example, but it will be easier to guide you, just place the first code in 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.


Thus the article Making a gadget visible only to the blog administrator

That's the article Making a gadget visible only to the blog administrator this time, hopefully it can be of benefit to all of you. well, see you in another article post.

You are now reading the article Making a gadget visible only to the blog administrator with the link address https://poccoll.blogspot.com/2013/09/making-gadget-visible-only-to-blog.html

Related Posts

Making a gadget visible only to the blog administrator
4/ 5
Oleh

No comments: