Hi JoomShaper team,
I noticed that in Helix Ultimate 2.2.10 the way custom.css is loaded in:
/templates/shaper_helixultimate/index.php
has changed.
Previously:
$theme->add_css('custom.css');
Now:
$customCssPath = JPATH_THEMES . '/' . $template->template . '/css/custom.css';
if (is_file($customCssPath)) {
$this->addStyleSheet(
Uri::root(true) . '/templates/' . $template->template . '/css/custom.css?v=' . filemtime($customCssPath)
);
}
As a result, the HTML output is now something like:
<link href="/templates/shaper_helixultimate/css/custom.css?v=1777328928" rel="stylesheet">
instead of:
<link href="/templates/shaper_helixultimate/css/custom.css" rel="stylesheet">
Could you please explain the reason for this change?
I understand that the new code checks whether the file exists and adds filemtime() for cache busting, but I would like to know why $theme->add_css('custom.css') was replaced and whether there is any other technical reason behind this change.
Thanks.