View Single Post
  #12  
Old 03-03-2019, 06:45 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Remove 'Quick view' from Crisp White Template

Don't use css display property to remove elements. This has been suggested numerous times but it is really bad practice. The element still exists in the source code and it is still rendered.


Same applies to js.


If you want to completely get rid of it modify the code to not render this element at all. This is the only proper way of doing it. I think every XC5 store should have one "custom modifications" module even if it is empty and does nothing. Then you can just apply this little changes here and there without creating new module for each one.



jQuery .hrml may not work on display:none elements so probably that's the reason it is not working for you. Either remove the css rule or call the elements with :hidden in the js line to find it.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote