- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
How to remove “Advanced editing” tab in extended package/PRO templates
May 25, 2012
This tutorial will show you how to remove the "Advanced Editing" tab in extended package/PRO templates.
1) Go to your template package, navigate to “the site_pro” folder. 2) Then go to the JS folder and find the file called script.js. 3) Open it with any php/text editor. 4) Erase the following text block:
$("body").append('')
$("#advanced .trigger").toggle(function(){$(this).parent().animate({right:0},"medium")},function(){$(this).parent().animate({right:-172},"medium")})
Note, the code may also look like one listed below:
⁄⁄ Panel
$(function(){
$('body').prepend('');$(window).scroll(function(){if ($(this).scrollTop() > 0) {$("#advanced").css({position:'fixed'});} else {$("#advanced").css({position:'relative'});}});
$.cookie("panel");
$.cookie("panel2");
var strCookies = $.cookie("panel");
var strCookies2 = $.cookie("panel2");
if(strCookies=='boo')
{
if(strCookies2=='opened'){$("#advanced").css({marginTop:'0px'}).removeClass('closed')}else{$("#advanced").css({marginTop:'-40px'}).addClass('closed')}
$("#advanced .trigger").toggle(function(){
$(this).find('strong').animate({opacity:0}).parent().parent('#advanced').removeClass('closed').animate({marginTop:'0px'},"fast");
strCookies2=$.cookie("panel2",'opened');
strCookies=$.cookie("panel",null);},
function(){
$(this).find('strong').animate({opacity:1}).parent().parent('#advanced').addClass('closed').animate({marginTop:'-40px'},"fast")
strCookies2=$.cookie("panel2",null);
strCookies=$.cookie("panel",'boo');});
if ($(window).scrollTop() > 0) {$("#advanced").css({position:'fixed'});}else {$("#advanced").css({position:'relative'});}
}
else
{
$("#advanced").css({marginTop:'0px'}).removeClass('closed');
$("#advanced .trigger").toggle(function(){
$(this).find('strong').animate({opacity:1}).parent().parent('#advanced').addClass('closed').animate({marginTop:'-40px'},"fast");
strCookies2=$.cookie("panel2",null);
strCookies=$.cookie("panel",'boo');},
function(){
$(this).find('strong').animate({opacity:0}).parent().parent('#advanced').removeClass('closed').animate({marginTop:'0px'},"fast")
strCookies2=$.cookie("panel2",'opened');
strCookies=$.cookie("panel",null);});
if ($(window).scrollTop() > 0) {$("#advanced").css({position:'fixed'});} else {$("#advanced").css({position:'relative'});}
The Advanced Editing tab should be removed now.
Feel free to check the detailed video tutorial below:
How to remove “Advanced editing” tab in extended package/PRO templates