X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Changing Styles (https://forum.x-cart.com/showthread.php?t=68625)

bespoke 02-07-2014 12:04 PM

Changing Styles
 
A few questions pertaining to the use of style and their files when making changes.

If I use style and theme .css files and make some changes in the folder skins\default\en\css

1. Do you need to re-build the cache each time after changes?

I know there is a set hierarchy from common to default but

2. what is the order in which the .css files are concatenated.

I'm used to apps that allow me to layer in .css files so long as I'm changing the last one in. I can't see what style from what file is actually being used even with a style inspector.

qualiteam 02-10-2014 07:30 AM

Re: Changing Styles
 
Hello!

You should never edit files in the folder skins\default\en\css - the first upgrade will ruin your work.

To add custom styles either use Theme Tweaker, or create a custom module (most likely you need a theme module).

You don't need to run the classes cache re-building process after editing a css file in your custom module (unless you enable website optimization techniques like css and js aggregation).

The order in which css files are loaded depends on:
- name of the module added the file (alphabetically)
- whether there are other modules which that module depends on
- whether it is a theme module, or not

Please could you clarify why the inspector doesn't help? Is the CSS aggregation setting disabled on the Store settings -> Look and Feel -> Performance page?


All times are GMT -8. The time now is 05:36 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.