VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Marttyn on November 18, 2013, 13:56:10 PM

Title: vmsite-ltr.css loading even when VM is not loaded
Post by: Marttyn on November 18, 2013, 13:56:10 PM
Hi!
My website has 3 main sections: blog, shop and web.
On the shop section i have VM component loaded. But on the other two, VM is not loaded.
My concern is that vmsite-ltr.css is being loaded on those sections of my web site. Why?
I dont use products on modules, or any other VM related thing. But the file is loaded anyway.
Ive overriden the default css file with the instructions shown here: http://docs.virtuemart.net/tutorials/33-templating-layouts/106-override-vmsite-ltr-css.html
I created a css override. I didnt add a line in my template to add this css.
I dont want to have this css file to be loaded on every page. Is this behaviour normal or just happens to me? What can i do?
Thanks!
Title: Re: vmsite-ltr.css loading even when VM is not loaded
Post by: Spiros Petrakis on November 18, 2013, 15:20:22 PM
Hi Marttyn,

if you display virtuemart modules in blog and web section then the css file will load by default because it is needed by the modules.
Title: Re: vmsite-ltr.css loading even when VM is not loaded
Post by: Marttyn on November 20, 2013, 16:31:35 PM
Quote from: Marttyn on November 18, 2013, 13:56:10 PM
I dont use products on modules, or any other VM related thing. But the file is loaded anyway.

Thanks for the answer, but as i told, i dont hace any VM modules.
What else can be loading the css?
Title: Re: vmsite-ltr.css loading even when VM is not loaded
Post by: Maxim Pishnyak on November 22, 2013, 22:18:46 PM
VM plugins then.
Title: Re: vmsite-ltr.css loading even when VM is not loaded
Post by: Marttyn on November 23, 2013, 00:30:36 AM
Can you give me some hint to find what can be loading this?
I dont realize i have any plugin or module that can load this css :(
Title: Re: vmsite-ltr.css loading even when VM is not loaded
Post by: Maxim Pishnyak on November 23, 2013, 13:09:12 PM
Search plugin maybe. Check Plugin manager and Extensions Manager too.
Title: Re: vmsite-ltr.css loading even when VM is not loaded
Post by: Marttyn on November 28, 2013, 19:01:31 PM
I do have some plugins activated:
vmcustom
-Stockable variants
-Customer text input
-Product specificacions

vmpayment
-Standard
-Paypal

vmshipping
-Shipping by rules for virtuemart
-By weight, ZIP and countries

Do they load VM css?

EDIT:
Ive disabled all this plugins, and still the CSS is being loaded. It should be something else :(
Title: Re: vmsite-ltr.css loading even when VM is not loaded
Post by: Spiros Petrakis on November 28, 2013, 19:33:43 PM
QuoteI created a css override. I didnt add a line in my template to add this css.

Hi Marttyn,

if your template is based on a framework  it is possible that the framework loads the file because it finds it in the css folder of the template. Please remove the file from the css folder and check if the virtuemart css still loading.
Can you provide a link to the website to take a look?