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}" />
{/foreach}
{/if}

 

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

 

Thanks!

Link to comment
Share on other sites

  • 1 month later...

Hi,

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

 

Cheers!

Edited by Nemo1 (see edit history)
Link to comment
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...