Code Repository

Mark Hambley – Freelance Magento developer

Magento – Add CSS Versioning

edit:

app/code/core(or local)/Mage/Page/Block/Html/Head.php

Change this:

// within getCssJsHtml()
$html .= $this->_prepareStaticAndSkinElements('
' . "\n",
	empty($items['js_css']) ? array() : $items['js_css'],
	empty($items['skin_css']) ? array() : $items['skin_css'],
	$shouldMergeCss ? array(Mage::getDesign(), 'getMergedCssUrl') : null
);

To this:

$html .= $this->_prepareStaticAndSkinElements('
' . "\n",
	empty($items['js_css']) ? array() : $items['js_css'],
	empty($items['skin_css']) ? array() : $items['skin_css'],
	$shouldMergeCss ? array(Mage::getDesign(), 'getMergedCssUrl') : null
);

Comments are currently closed.