ddbloth Posted August 21, 2013 Share Posted August 21, 2013 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 More sharing options...
tomerg3 Posted August 21, 2013 Share Posted August 21, 2013 Do you have CCC options turned on, if so, try to disable them. View the source on the page (using Firefox), find global.css and click on it, and see if the changes are there. Link to comment Share on other sites More sharing options...
ddbloth Posted August 22, 2013 Author Share Posted August 22, 2013 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 More sharing options...
tomerg3 Posted August 22, 2013 Share Posted August 22, 2013 It sounds like the problem is with your CSS syntax, or some other CSS code is overriding it. You can use Firebug for Firefox to see what CSS is applied to the text you're working on, and see why it is not being applied. Link to comment Share on other sites More sharing options...
ddbloth Posted August 22, 2013 Author Share Posted August 22, 2013 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 More sharing options...
tomerg3 Posted August 22, 2013 Share Posted August 22, 2013 You can add !important for a CSS command (before the ; ) which will make it top priority. Link to comment Share on other sites More sharing options...
ddbloth Posted August 22, 2013 Author Share Posted August 22, 2013 Nope - no difference Starting to think that PrestaShop is pulling that 222x111 right out of the image file?? ... Link to comment Share on other sites More sharing options...
tomerg3 Posted August 22, 2013 Share Posted August 22, 2013 Is it in CSS, or hard coded values in the <img> tag? Link to comment Share on other sites More sharing options...
ddbloth Posted August 22, 2013 Author Share Posted August 22, 2013 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!! 1 Link to comment Share on other sites More sharing options...
Recommended Posts