Template Deals Plazza standard width

Is it possible to dissable the sticky menu?
11 years 1 month ago #7 by dimitrakopoulos
The topic has been marked as resolved.
Hi Dimitri,
Yes, open file /js/template.js :

delete these lines of code :
// sticky menu when browser scrolled down
jQuery(document).ready(function($){
 
  /* prepend menu icon */
  jQuery('#tpwrapper-topmenu').prepend('<div id="menu-icon">Menu</div>');
 
  /* toggle nav */
  jQuery("#menu-icon").on("click", function(){
    jQuery("#responsivemenu").slideToggle("fast");
    jQuery(this).toggleClass("active");
  });
 
});
 
function moveScroller() {
   var a = function() {
     var b = jQuery(window).scrollTop();
     var d = jQuery("#stickydiv-anchor").offset().top;
     var c = jQuery("#stickydiv");
     var e = jQuery("#logo");
     if (b>d) {
 
       //c.css({position:"fixed",top:"0px", left:"0", width: "100%", background:"#333"})
       c.addClass("stick");
       e.addClass("stickytop");
 
     } else {
       if (b<=d) {
         //c.css({position:"relative",top:"", background:"transparent",})
         c.removeClass("stick").addClass("regular");
         e.removeClass("stickytop").addClass("regular");
       }
     }
   };
   jQuery(window).scroll(a);a();
 }
 
jQuery(function() {
  moveScroller();
});
11 years 1 month ago #8 by andy
The topic has been marked as resolved.
Ok with the sticky menu, works! Thanks,
Also i want to know how disable the compress of css.
Thanks
11 years 1 month ago #9 by dimitrakopoulos
The topic has been marked as resolved.
Hi dimitri, please open file css/template.css.php, then delete these lines :
function compress($buffer) {
	/* remove comments */
	$buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
	/* remove tabs, spaces, new lines, etc. */        
	$buffer = str_replace(array("\r\n","\r","\n","\t",'  ','    ','    '),'',$buffer);
	/* remove unnecessary spaces */        
	$buffer = str_replace('{ ', '{', $buffer);
	$buffer = str_replace(' }', '}', $buffer);
	$buffer = str_replace('; ', ';', $buffer);
	$buffer = str_replace(', ', ',', $buffer);
	$buffer = str_replace(' {', '{', $buffer);
	$buffer = str_replace('} ', '}', $buffer);
	$buffer = str_replace(': ', ':', $buffer);
	$buffer = str_replace(' ,', ',', $buffer);
	$buffer = str_replace(' ;', ';', $buffer);
	$buffer = str_replace(';}', '}', $buffer);
 
	return $buffer;
}
11 years 1 month ago #10 by andy
The topic has been marked as resolved.
Please sent me your email to sent you my site infos because i have a problem.
Thanks
11 years 3 weeks ago #11 by dimitrakopoulos
The topic has been marked as resolved.
You may write it under the Your Site Details tab below. It's only you and us can see it.
11 years 3 weeks ago #12 by erwinschro
The topic has been marked as resolved.
Powered by Kunena Forum