VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: luiskar on February 14, 2015, 13:25:51 PM

Title: I can't change vm-ltr-site.css
Post by: luiskar on February 14, 2015, 13:25:51 PM
I don't know why virtuemart does't show the changes i make in this file. I'm using vm 3.0.4 and joomla 3.3.6 and I want to change add to the cart area margin because it show a blank. In chrome console work but any changes in the file doesn't show in the page. Any ideas?

Example page: http://mimabebes.es/clon/carroceria/carros/inglesina-carros/inglesina-carros-2014/inglesina-classica-tienda.html
Title: Re: I can't change vm-ltr-site.css
Post by: jenkinhill on February 14, 2015, 13:34:41 PM
There is no add to cart at the url you provide.  I assume you are using the edited file as an override?  http://docs.virtuemart.net/tutorials/templating-layouts/106-override-vmsite-ltr-css.html

Did you clear all caches?
Title: Re: I can't change vm-ltr-site.css
Post by: luiskar on February 14, 2015, 13:56:52 PM
Quote from: jenkinhill on February 14, 2015, 13:34:41 PM
There is no add to cart at the url you provide.  I assume you are using the edited file as an override?  http://docs.virtuemart.net/tutorials/templating-layouts/106-override-vmsite-ltr-css.html

Did you clear all caches?
Al caches clear. I use a override file in my template but don't work either. This page is only use as catalogue so I don't need add to the cart botton.
Title: Re: I can't change vm-ltr-site.css
Post by: GJC Web Design on February 14, 2015, 14:02:07 PM
how can you begin to work on a site when your css is returned as http://mimabebes.es/clon/plugins/system/jch_optimize/assets/clon/gz/30/e4513f956da0f215ae32627422b17b95.css

Switch all this compression and optimization crap off until the site is finished
Title: Re: I can't change vm-ltr-site.css
Post by: luiskar on February 14, 2015, 17:32:09 PM
Quote from: GJC Web Design on February 14, 2015, 14:02:07 PM
how can you begin to work on a site when your css is returned as http://mimabebes.es/clon/plugins/system/jch_optimize/assets/clon/gz/30/e4513f956da0f215ae32627422b17b95.css

Switch all this compression and optimization crap off until the site is finished

I was testing jch optimize at this moment. Now it's not working. I modified .addtocart-area{margin: 0 0 4.2em;} to .addtocart-area{margin: 0 0 0em;}. In the file is change but in the live web don't.
Title: Re: I can't change vm-ltr-site.css
Post by: jenkinhill on February 14, 2015, 17:33:51 PM
Try adding !important
Title: Re: I can't change vm-ltr-site.css
Post by: luiskar on February 14, 2015, 17:41:59 PM
Quote from: jenkinhill on February 14, 2015, 17:33:51 PM
Try adding !important
I did that before and don't work either. I erase the file from the template and from components/com_virtuemart/assets/css and the page still works, how can be possible?
Title: Re: I can't change vm-ltr-site.css
Post by: jenkinhill on February 14, 2015, 17:51:56 PM
You already must have override css in place, prossibly added to some template css rather than using as an override in templates\[yourjoomlatemplate]\css\vmsite-ltr.css  Usually with Firebug you can identify the right file.
Title: Re: I can't change vm-ltr-site.css
Post by: luiskar on February 14, 2015, 17:55:59 PM
Quote from: jenkinhill on February 14, 2015, 17:51:56 PM
You already must have override css in place, prossibly added to some template css rather than using as an override in templates\[yourjoomlatemplate]\css\vmsite-ltr.css  Usually with Firebug you can identify the right file.

finally I found the problem. The stupid cloudflare has cache of my page too and i don't know why with css files doesn't show the changes. I purge it and now works fine.
Title: Re: I can't change vm-ltr-site.css
Post by: jenkinhill on February 14, 2015, 21:25:27 PM
A simple rule.  Don't use Cloudflare while developing a site as like today, you can waste a lot of time.