All I am trying to do is to remove the right zone of this site. How do I accomplish this? Is there any site in SharePoint that doesn't have zones?
Web Part Zones are part of the Page Layout that your page instance is using. To remove a Web Part Zone you can:
On the content Editor just insert the following and it works:
<script>
function HideWebPartZone()
{
var x = document.getElementsByTagName("TD")
var i=0;
for (i=0;i<x.length;i++)
{
if (x[i].width=="70%")
{
// left column
x[i].style.width="100%";
// center (otherwise empty) column
var x2=x[i].nextSibling;
x2.style.width="0";
x2.style.display="none";
x2.innerHTML="";
// right column
x2=x[i].nextSibling.nextSibling;
x2.style.width="0";
x2.style.display="none";
x2.innerHTML="";
// right margin column
x2=x[i].nextSibling.nextSibling.nextSibling;
x2.style.width="0";
x2.style.display="none";
x2.innerHTML="";
//all done
return;
}
}
}
_spBodyOnLoadFunctionNames.push("HideWebPartZone")
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With