sim.plified.com

Chris Pollock

Chris Pollock - web developer & ecommerce entrepreneur
undivided… my thoughts on world, family, church, business, technology and Jesus Christ (all in all)

Magento Custom.css

I am making the switch to Magento.  In the process I'm sure I'll be learning a lot.  I'm going to be posting what I learn here for a couple of reasons:

1. for my own documentation, so I can look back and see what I did
2. for your instruction, if you run into the same problem I did I hope this helps.

Custom.css is not included by default.

Add the following line to your page.xml

<action method="addCss"><stylesheet>css/custom.css</stylesheet></action>

Then you will need to update your cache

Go to the Admin.  Click System >> Cache Management.  Select "Refresh" from the list and click save in the upper right. 

At this point, any changes you see in custom should start appearing in you site.

5 Comments, Comment or Ping

  1. Great site!
    I can't wait for your comments on this platform. I am also just starting on it.

    warm regards
    dimi

  2. Hi – where can I find "page.xml"?
    Thanks for this tip – just trying to figure this out – John

  3. Kristina

    How do you assign that new CSS file to a medium (e.g. "screen," "print," "handheld")?

  4. LD

    Here's a really simple way of adding a css file to a page:

    http://www.yireo.com/tutorials/magento/magento-theming/703-video-magento-addcss-to-single-cms-page

    Add this to Layout Update XML for the page of your choosing:

    ../yireo/css/custom.css
    media="screen"

Reply to “Magento Custom.css”

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Things I see

IMG_7347BookFinally!Little peanutTime to set sailEyes openSleepy TimeAri Jeremiah PollockBig brotherBaby's HomeBike manBiker gangBirthday monopoly.$5 StarIMG_2881

Chris Pollock

Web Developer - proficient in both PHP and ASP.NET.
Rochester, New York

View my web developement site.

View Chris Pollock's LinkedIn profile

My Pictures

IMG_7347BookFinally!Little peanutTime to set sailEyes openSleepy TimeAri Jeremiah PollockBig brotherBaby's HomeBike manBiker gangBirthday monopoly.$5 StarIMG_2881