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

Custom skin does not work properly using addCss in layout.xml
 
kohril
Member
 
Total Posts:  44
Joined:  2007-12-23
Lille, northernFrance
 

I added my own css in my layout file using the following code :

<action method="addCss"><css>myrep/mystyle.css</css></action>
But I do not want to use a skin in skin/frontend/default/default, my files are located in skin/frontend/default/myskin.

In admin I properly filled skin field with “myskin”.

Note that my custom skin “myskin” is used properly for all css files, but not for thoses I added with the code below files !

It used to work with version 0.8.17240…

 
Magento Community Magento Community
Magento Community
Magento Community
 
kohril
Member
 
Total Posts:  44
Joined:  2007-12-23
Lille, northernFrance
 

Well ... it’s allright with this code instead of the previous one :

<action method="addCss"><stylesheet>css/myrep/mystyle.css</stylesheet></action>

Enjoy !
Anthony

 
Magento Community Magento Community
Magento Community
Magento Community
 
anjandoshi
Jr. Member
 
Total Posts:  7
Joined:  2010-02-22
 

I am also having the same issue.

I have used below lines for my stylesheet to add but having the same issue. It is taking css from my base folder only not from my custom folder.

<action method="addCss"><stylesheet>css/myrep/mystyle.css</stylesheet></action>

I am using magento 1.4.1.1.

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
gary_star
Jr. Member
 
Total Posts:  1
Joined:  2011-05-04
 

You can use your own CSS (placed in your skin folder) if you choose on “custom design” your skin and add to “Custom Layout Update”:

<reference name="head">
<
action method="addCss"><stylesheet>css/my_css.css</stylesheet></action>
</
reference>
 
Magento Community Magento Community
Magento Community
Magento Community
 
brunomarshall
Guru
 
Avatar
Total Posts:  367
Joined:  2009-08-04
 

Hello ,

you can use custom design present in design option in system>configuration>design

and provide custom layout update with code you have.

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