Undocumented But Working: Custom CSS File In Templates/shaper_helixultimate/css/custom/ Folder - Question | JoomShaper

Undocumented But Working: Custom CSS File In Templates/shaper_helixultimate/css/custom/ Folder

PH

Peter Hunkeler

Helix Framework 2 days ago

Hi I inherited this site some years ago, and at that time, the site's custom CSS was stored in a file called

templates/shaper_helixultimate/css/custom/tvm_custom_styles.css

I searched the documentation but the only thing I've found was saying that custom CSS code should be stored in file

templates/shaper_helixultimate/css/custom.css

While our CSS file is working as desired since it is included in the HTML as

<link href="/templates/shaper_helixultimate/css/custom/tvm_custom_styles.css" rel="stylesheet">

I wonder if this is simply supported for compatibility? What were, or better are the complete rules for custom CSS file? Is any .CSS file in subfolder ´css/custom´ considered a CSS file to be added to the HTML?

0
3 Answers
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 2 days ago #232678

Hi,

Yes, the existing CSS file will continue to work. Helix Ultimate will load the CSS file from the templates/shaper_helixultimate/css/custom/ directory as it is already being included in the page.

Since this is an existing implementation, there is no need to move or rename the file as long as it is working correctly. You can continue using:

templates/shaper_helixultimate/css/custom/tvm_custom_styles.css

However, for new custom CSS, we recommend using the standard custom.css file mentioned in the current documentation.

Best regards

0
PH
Peter Hunkeler
Accepted Answer
1 day ago #232721

Thanks. I will switch to the newer standard eventually.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 day ago #232684

In last HU update we added "extra version pattern" so browser will load current custom.css file each time without cache problems.

Example

/templates/shaper_helixultimate/css/custom.css?v=1787812345


About your founding, if it still works, you're lucky one.

0