Jump to content

CSS - A different way of doing things?

Recommended Posts

Just starting to get my teeth into theme design for Prestashop. Noticed that the CSS is brought in, and there are loads of CSS files to deal with. I'm a front-end developer, and have never seen so many CSS files for a project!


They're brought in using this:


{if isset($css_files)}
{foreach from=$css_files key=css_uri item=media}
<link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />


But wondered if I could just reference 2/3 files, and cut this out, is it used for anything else?



Share this post

Link to post
Share on other sites
  • 1 month later...


That is used to add any queued css to the store, so that every assigned css file for every module is added. Of course, if your theme is for your personal use only, you can go ahead and remove that, and only include your main global or anythingelse .css file with all the styles you need



Edited by Nemo1 (see edit history)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More