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

How we add new css file in magento theme? 
 
Javed Iqbal
Jr. Member
 
Total Posts:  3
Joined:  2009-12-14
 

How we add new css file in magento theme? i am new here please help me ASAP.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Javed Iqbal
Jr. Member
 
Total Posts:  3
Joined:  2009-12-14
 

i tried in app>design>frontend>default>default>layout>page.xml but not shown in source code and also not implement on design, anybody help me?

 
Magento Community Magento Community
Magento Community
Magento Community
 
magentodesignintegration.com
Jr. Member
 
Total Posts:  1
Joined:  2009-12-22
 

edit app\design\frontend\default\default\layout\page.xml, you need to disable cache to see changes

 
Magento Community Magento Community
Magento Community
Magento Community
 
Gyniolatry
Sr. Member
 
Total Posts:  132
Joined:  2009-11-26
Perth.au
 

Either Edit app\design\frontend\YourInt\YourTheme\layout\page.xml
add the following line to the head block

<action method="addCss"><stylesheet>css/MyNew.css</stylesheet></action>
* ensure your theme is selected In under custom design (admin panel -either cms/manage pages or manage categories/category depending on how you created your page.

To include a different CSS page which is not global, you can also add the following code into your “custom Design” / “Layout Update XML”
section of the page you wish to use an alternate CSS

<reference name="head">
    <
action method="addCss">
        <
stylesheet>css/MyNew.css</stylesheet>
        <
params>media="all"</params>
    </
action>
</
reference>

regards
G

 
Magento Community Magento Community
Magento Community
Magento Community
 
Javed Iqbal
Jr. Member
 
Total Posts:  3
Joined:  2009-12-14
 

thanks all budies! i was directly call in head section like

app\design\frontend\default\default\template\page\html\head.phtml

<link href="<?php echo $this->getSkinUrl('css/style.css')?>” rel="stylesheet" type="text/css" />

now its working is it fine?

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