Quote:
Originally Posted by tony_sologubov
As for CSS rules for the home page only, you can alter the classes/XLite/Module/Tony/HomePageWithoutSidebar/View/Content.php viewer and define there the following method:
public function getJSFiles()
{
$result = parent::getJSFiles();
if ('main' == $this->getTarget()) {
$result[] = 'modules/Tony/HomePageWithoutSidebar/css/css.css';
}
return $result;
}
|
I could not get it to work after updating the cahce the css did not appear in the homepage, do you have the full Content.php file please.