Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Location of the CSS files always comes from default
 
Dale Grim
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-05-14
 

Hopefully I’m missing something obvious.  I created a new theme under the default interface.  Under skin\frontend\default\<my_new_view>\css I put my own copy of custom.css.

My first problem was that custom.css isn’t actually loaded by the page.xml template.  So, I copied the page.xml template and added loading custom.css.

After adding the addCss line to page.xml to load custom.css, when I view the html source, I can see the custom.css file being referenced, but it’s being referenced from skin/frontend/default/default, not my custom view directory.

Am I doing something wrong or is this just expected behavior.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dale Grim
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-05-14
 

OK… I was missing something obvious.

if you use <action method="addCss”><stylesheet>css/menu.css</stylesheet></action>, the css file will always come from the default theme. 

if you use <action method=“addItem"><type>skin_css</type><name>css/custom.css</name><params/></action>, then the css file comes from the custom theme.

Now, if only I can figure out a way to load custom.css without having to copy the entire page.xml file, I’ll be set.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top