View Single Post
  #2  
Old 10-31-2014, 10:14 AM
 
spdesign spdesign is offline
 

Advanced Member
  
Join Date: Mar 2010
Posts: 31
 

Default Re: Best way to add additional css file to custom theme

For 5.1.7:

Figured it out. Follow instructions in KB here: http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes

except with the following changes if your custom theme is a module.

In your module directory (classes/XLite/YourName/YourThemeName/View/) create AView.php with the following code

Code:
<?php namespace XLite\Module\YourName\YourThemeName\View; class AView extends \XLite\View\AView implements \XLite\Base\IDecorator { public function getCSSFiles() { $list = parent::getCSSFiles(); $list[] = 'css/yourcssfile.css'; return $list; } }

And then make sure yourcssfile.css is in /skins/YourThemeName/default/en/css/

Probably pretty basic and unnecessary, but just in case others are less experienced with XCart 5 like me and need it really spelled out.
__________________
===========
x-cart gold/classic
4.6.4
Reply With Quote