Jump to content

Theme Global CSS changes not taking


Recommended Posts

Hi All -

 

I have a very odd issue, and thus far I have done everything everyone (at least the info I found) told me to do that should resolve this. This is PrestaShop 1.5.4.1.

 

The issue is that my themes global css changes are not showing. In this case specifically the width and height css for hte header logo.

 

1 - I have set, via the back office, to force compile & disabled cache

2 - I have tried deleting the files from the smarty cache (which had no files other then index) and compile. Also deleted the "tmp" images.

 

The smarty debug console shows me that smarty for the logo is as such:

$logo_image_height:

-> Value = "111" (Note - I never set this value...ever)

->nocache = false (Shouldn't this be true?!?)

-> scope = "Smarty root"

 

Same stuff for $logo_image_width, except the value is "222" - also I have never set the value equal to this.

 

Finally - I also tried to change the logo via the back office to be a png file (was a jpg)...this change has also not taken!

 

Any thoughts? Definitely stuck... dont know what else I could try here.

 

Thanks,

 

Dan

Link to comment
Share on other sites

As to the CCC - all are set to "Use xxx as original".

 

Interesting about the global.css in the page (excellent thought there by the way...why didn't I think of that?!? lol ;-) and it does

indeed show the changes as they should be!! Hmmm...

 

Now to figure out where the header.tpl is actually getting the values for $logo_image_height & $logo_image_width...

Link to comment
Share on other sites

I see there is class (logo) associated with the actual image... that must be overriding the css (#header_logo).

 

Perhaps I will just hard code the size I want in the header.tpl, granted I dont believe that to be the best way...but... cant find this logo class in the css either...

Link to comment
Share on other sites

Well, I decided to remove the $logo_image_height & $logo_image_width from the <img> tag - and oddly enough, the css still didn't take!!

 

But enough of this - too much time spent on something small - I will hard code the size I want in the img tag of my themes header.tpl and be happy with that! ...and that does work :-)

 

Thanks for helping!! I did learn a lot from this exchange to be sure!!

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...