How do I make a widget invisible?
Forum » Blogger Discussion / Blogger Templates » How do I make a widget invisible?
Started by: TangoTango
On: 1177014194|%e %b %Y, %H:%M %Z|agohover
Number of posts: 6
rss icon RSS: New posts
How do I make a widget invisible?
TangoTango 1177014194|%e %b %Y, %H:%M %Z|agohover

Below is the widget I want to hide (I don't want the buttons in it to be seen).
I've heard of the 'display:none; attribute' and also 'this._visible false;' but
I have no idea where to put tthem.
Could someone please indicate where in the code below should the attribute be added?

<b:widget id='HTML5' locked='false' title='' type='HTML'>
<b:includable id='main'>
<!— only display title if it's non-empty —>
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>

<b:include name='quickedit'/>
</b:includable>
</b:widget>
</b:section>
</div>

</div></div> <!— end outer-wrapper —>
</body>
</html>

unfold How do I make a widget invisible? by TangoTango, 1177014194|%e %b %Y, %H:%M %Z|agohover
Re: How do I make a widget invisible?
Beta BlokeBeta Bloke 1177057699|%e %b %Y, %H:%M %Z|agohover

Tango, please post a link to your Blog, so that I can take a look.

unfold Re: How do I make a widget invisible? by Beta BlokeBeta Bloke, 1177057699|%e %b %Y, %H:%M %Z|agohover
Re: How do I make a widget invisible?
TangoTango 1177103863|%e %b %Y, %H:%M %Z|agohover

Beta Bloke, can't do. It's a private blog.

If at all possible, could you indicate a generic way to hide the contents of a widget?

Many thanks.

last edited on 1177104128|%e %b %Y, %H:%M %Z|agohover by Tango + show more
unfold Re: How do I make a widget invisible? by TangoTango, 1177103863|%e %b %Y, %H:%M %Z|agohover
Re: How do I make a widget invisible?
Beta BlokeBeta Bloke 1177163037|%e %b %Y, %H:%M %Z|agohover

Well, the most obvious way would be to delete it from the Blog. If that is not what you want, wrap it in a DIV-element, and give this DIV-element a display:none style.

unfold Re: How do I make a widget invisible? by Beta BlokeBeta Bloke, 1177163037|%e %b %Y, %H:%M %Z|agohover
Re: How do I make a widget invisible?
TangoTango 1177251637|%e %b %Y, %H:%M %Z|agohover

Ok, thanks, but like I said in my first post, I have no idea where to put the display:none style thing. Don't even know what a a DIV-element is.

Would you, please, indicate where in the code below the display:none style should be placed and how. Thank you.

<b:widget id='HTML5' locked='false' title='' type='HTML'>
<b:includable id='main'>
<!— only display title if it's non-empty —>
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>

<b:include name='quickedit'/>
</b:includable>
</b:widget>
</b:section>
</div>

</div></div> <!— end outer-wrapper —>
</body>
</html>

last edited on 1177251965|%e %b %Y, %H:%M %Z|agohover by Tango + show more
unfold Re: How do I make a widget invisible? by TangoTango, 1177251637|%e %b %Y, %H:%M %Z|agohover
Re: How do I make a widget invisible?
TangoTango 1177295367|%e %b %Y, %H:%M %Z|agohover

Never mind, I found the answer somewhere else.

unfold Re: How do I make a widget invisible? by TangoTango, 1177295367|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.