CSS

Author Message

David Santiso

Saturday 29 January 2011 11:48:58 am

Hi,

I've been overwriting templates while I was building my website. Now I want to edit CSS files.

Can I override the CSS I want as the templates? Or have I to create new CSS files?
How do I do it?

Thanks,

David

Thiago Campos Viana

Saturday 29 January 2011 1:38:03 pm

You can override as the templates or, if you are creating a design extension, you can create a design.ini.append.php file and define a new css file:

[StylesheetSettings]
FrontendCSSFileList[]=yourstyle.css

Then you need to create the yourstyle.css file inside the stylesheets folder of your design folder. Just don't forget that you need to know the priority of your extension is defined in the settings/override/site.ini.append.php

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

David Santiso

Sunday 30 January 2011 8:56:21 am

Thanks.

I have enabled debug in the front. Then comes a list of templates that are being used and a button to the right to override it. Then creates an override in the default folder "design/ezflow/override/templates/".

There is any way to do something similar with CSS?

If I do it by modifying the file "design.ini.append.php" where have I to put the new CSS?

Thiago Campos Viana

Monday 31 January 2011 7:27:55 am

Hello David, you need to put the new css inside any stylesheets folder of any of your extensions or in some design folder. Best pratice is create a design extension and put it there, and also all your templates/images/javascripts files.

If you need some more help, just ask.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.