Imported CSS Stylesheets And CSS Compression - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Imported CSS Stylesheets And CSS Compression

FO

federico Fernandez de Santos Ortiz

Helix Framework 3 years ago

I'm using a custom.css file which imports another css file using an @import statement. It works fine until I enable CSS compression in Helix Ultimate advanced settings. Apparently, compression doesn't take care of imported stylesheets. Are there any plans for improving compression so imported stylesheets are correctly handled?

Thanks.

0
2 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 3 years ago #71212

Hi,

Thanks for contacting us. Our team is working on updating this issues. I will note it down in our feature request list so that our team will try to improving the compression process so that imported stylesheets will be correctly handled.

-Regards.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #71224

Hola Federico,

our CSS compresion tool is basic script, so it may not handle extra "rules".

For sure we cannot fix it on the forum, so I suggest using an external/extra installed plugin for compression and disabling JS and CSS compression from Helix Options. There is so many good working extension for that on Joomla Ext. Directory (JED), many also in Free version. You should be able to find alternatives pretty fast.

I guess, this time we cannot help more.

BTW

Maybe add those files using more classic way? In Template Options > Custom Code > Before < / Head > and add < link HTML code to load those file(s)

0