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

Problem with modifying the CSS of an existing theme
 
ladatcha
Jr. Member
 
Total Posts:  5
Joined:  2013-03-20
 

I tried modifying the CSS of a bought theme by following the instructions of the Magento Design guide but it won’t work.

In /app/design/frontend/default/madame_modern/layout/local.xml I inserted this:

<layout>
    <default>
 
        <!-- 
add the local stylesheet -->
        <
reference name="head">
            <
action method="addCss"><stylesheet>css/local.css</stylesheet></action>
        </
reference>
 
    </default>
</
layout>
There was no local.css file in the CSS folder at the start.

I uploaded the local.css file in /skin/frontend/default/madame_modern/css/local.css with some test modifications in it (I tried these first with firebug and they worked).

Still, I can’t see the changes when I refresh the page.

What am I doing wrong?

Thank you for your help!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Enthusiast
 
Avatar
Total Posts:  811
Joined:  2011-07-03
 

Deleted the cache? Is the file local.css loaded? (you can check this in the network section from firebug)

 
Magento Community Magento Community
Magento Community
Magento Community
 
ladatcha
Jr. Member
 
Total Posts:  5
Joined:  2013-03-20
 

The cache has been refreshed, but I can\\\\\\\’t see the local.css file in the Network section of Firebug (thanks for the tip!).
However, it is on the server, in the folder suggested in the Magento Design guide.

Do I have to customize the path of the css in the XML file?

<!-- add the local stylesheet -->
        <
reference name=\\\\\\\"head\\\\\\\">
            <
action method=\\\\\\\"addCss\\\\\\\"><stylesheet>css/local.css</stylesheet></action>
        </
reference>

???

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