News:

Support the VirtueMart project and become a member

Main Menu

vmsite-ltr.css loading even when VM is not loaded

Started by Marttyn, November 18, 2013, 13:56:10 PM

Previous topic - Next topic

Marttyn

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!

Spiros Petrakis

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.
Joomla templates and extensions development
https://www.yourgeek.gr

Marttyn

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?

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Marttyn

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 :(

Maxim Pishnyak

Search plugin maybe. Check Plugin manager and Extensions Manager too.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Marttyn

#6
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 :(

Spiros Petrakis

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?
Joomla templates and extensions development
https://www.yourgeek.gr