Wednesday, November 21, 2007

Can't Delete A Page Element?

In a Layouts template, the ability to add and delete page elements is one of the neatest tasks in maintaining your blog. Sometimes, though, a page element added can't be deleted later.

You can edit a page element either from the blog itself (if you have enabled Quick Edit), or from the Page Elements wizard. When you edit an element, it should have a button to "Remove Page Element". But the button isn't always there, and this generally happens when the element is locked.

To unlock the element, go into Edit HTML, and backup the template. Then scroll through the template listing there, and look for the entry for the problem page element.

Let's say that we need to remove the "Key Articles" page element.

<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>
<b:widget id='LinkList1' locked='true' title='Key Articles' type='LinkList'/>
<b:widget id='Label1' locked='false' title='Topics' type='Label'/>
</b:section>
</div>


Change that to "false", and save changes.

<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>
<b:widget id='LinkList1' locked='false' title='Key Articles' type='LinkList'/>
<b:widget id='Label1' locked='false' title='Topics' type='Label'/>
</b:section>
</div>


Then go back to Page Elements, re edit the "Key Articles" page element, and you should have a "Remove Page Element" button.

As an alternative, the Template Editor "Revert widget templates to default" wizard may be useful.

>> Top

6 comments:

XC said...

great. thx!

srinivas said...

could able to delete a gadget ....wen i click edit button on the gadget ...a window is popping up showing me tat it can harm my computer...pls help me i wanna delete tat gadget from my blog...

Diego said...

I keep on getting this message "You can only have one of the same widget on any given page."
I have created a template with Artiseer, all good apart from this.
Do you know if there is a way to ger round this? Thank you.

Chuck said...

I keep on getting this message "You can only have one of the same widget on any given page."

This would be a good question to ask in Blogger Help Forum: Something Is Broken, where we can try to diagnose the problem.

Okagbabeluodachi said...

How do I remove the NavBar in Blogger, that is, that portion at the topmost containing "Follow", "Report Abuse", "Next Blog", "Sign Out", etc.? Thanks.

dak os said...

wow !! its working. its gone like easily. thanks to this blog ! i am really happy.. =)

http://liriklagu-best.blogspot.com