Dear Sir/Madam,
I want to customize the CSS, there are several ways to have the CSS customization, may I know what are the difference and the order.
1. Theme Customization
2. Layouts CSS and JS
3. CSS from Views
4. CSS from Content Template
5. style.css
6. theme.css from Toolset Starter Theme
May I know how they work and their order in the page when load?
Best regards,
Kelvin.
Dear Kelvin,
Yes, you are right, their CSS order are different. here are details:
1) theme.css from Toolset Starter Theme, loaded in the HTML <header> area
2) style.css from Toolset Starter Theme, loaded in the HTML <header> area
3) style.css from Toolset Starter Child Theme, loaded in the HTML <header> area
4) Theme Customization loaded in the HTML <header> area
5) CSS from Views, inline CSS codes within HTML <body> area
6) CSS from Content Template, inline CSS codes within HTML <body> area
7) Layouts CSS and JS, within HTML <footer> area
And the CSS codes which are loaded lately will override previous codes.
Hope it is clear.
Dear Luo Yang,
May I know whether your 1) - 7) are the order of loading the stylesheet? In that case, Layouts CSS and JS and the last resort of the style if an element is defined here? Am I right?
Best regards,
Kelvin.
Yes, you are right the
- 1) ~ 7) are the order of loading the stylesheet
- Layouts CSS and JS and the last resort of the style if an element is defined here