Jump to content

transferring modified module css to theme


Recommended Posts

i'm trying to be in keeping with prestashop theming best practices, by transferring the module css and tpl's - that i have modified outside of the theme - into the theme

 

but when i copy them, retain exactly the same folder name, the shop is still using the core module css, and not the new one i have copied into the theme folder

 

can someone tell me what i am doing wrong ? is there a trick to this ?

Link to comment
Share on other sites

what version of prestashop, assuming 1.4.ish

from your back office-->preferences-->perfromance

set Force Compile 'Y'

and

Cache 'N'

(note: if you use file system caching you may need to turn this off as well.

 

You should then see your changes,

 

Make sure to turn off force compile and enable caching when done.

Link to comment
Share on other sites

thanks for the response elpatron,

 

i have already Force Compile on and Cache off

i am on version 1.4.7.0

and using the "New Official PrestaShop standard theme 1.5"

 

i can see clearly all my changes, that is not a problem.

i just want to transfer all the css that i modify outside of the theme - into the theme so it will be easy to update in the future. but i can see the shop is still using the core module css if i delete it (and not the one i have placed in the theme folder)

i hope that makes sense ..

 

any other ideas ... ?

Link to comment
Share on other sites

Hi, without seeing the file structure of your changes, I am assuming you have put your .css for example outside of theme/css/global.css into a new file, yes? If so then you will need to tell PrestaShop by executing function addCSS, (search for this function).

 

also see, your themes headere.tpl which loads the .css files, you module would then need to addCSS as mentioned above.

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...