rgwhitaker Posted August 13, 2013 Share Posted August 13, 2013 (edited) I'm running PrestaShop 1.5.4.1. I created my logo in Photoshop and saved it as a JPEG file. I then log into the PS admin panel, go to Preferences > Themes. I purchased a theme from the PrestaShop website. I upload the logo in the Header Logo text box, click Save, and it appears in the Appearance section. But when I open my site in the browser, just the generic Your Logo Here logo appears. My logo doesn't appear. I'm currently developing locally on my PC using XAMPP. Interesting: I just went into the PS admin panel and changed my theme to the default theme, click View My Shop and my logo appears in the default theme, but not when I select the theme I purchased, which is the one I want to use. What could be the problem? Thanks. Edited August 20, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted August 13, 2013 Share Posted August 13, 2013 (edited) try clearing cache..or go to img folder on root check ur logo exists or not Edited August 13, 2013 by Jiten rash (see edit history) Link to comment Share on other sites More sharing options...
swsindonesia Posted August 13, 2013 Share Posted August 13, 2013 Hi, Your purchased theme may refer to different image, not to PS set logo, try looking into your header.tpl of your purchased theme. Link to comment Share on other sites More sharing options...
vekia Posted August 13, 2013 Share Posted August 13, 2013 i suppose that you've got custom theme and logo is hardcoded there. check please sources of your template, especially one file: header.tpl (it is located in the themes/your_theme/ directory) by default, logo definition should looks like: <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> you've got the same definition? 2 Link to comment Share on other sites More sharing options...
swsindonesia Posted August 13, 2013 Share Posted August 13, 2013 Hi vekia, yes I suspected the same as you. It would be useful to share your header.tpl of your active template Link to comment Share on other sites More sharing options...
vekia Posted August 13, 2013 Share Posted August 13, 2013 I totally agree with you @swsindonesia it's hard to say what's going on without an access to the code in header.tpl file but im convinced that you've got right, it looks definitely like a hader tpl modification you mentioned in your first message here Link to comment Share on other sites More sharing options...
rgwhitaker Posted August 13, 2013 Author Share Posted August 13, 2013 Vekia: Here's how that line of code in my theme's header.tpl file appears: <header id="header"> <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"><img class="logo" src="{$img_ps_dir}logo.jpg?{$img_update_time}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" /></a> {$HOOK_TOP} </header> Is this okay, or is there something I need to change. Link to comment Share on other sites More sharing options...
rgwhitaker Posted August 13, 2013 Author Share Posted August 13, 2013 Update: Here's what I did: I copied my logo file to the prestashop/img directory and then it worked! BUT... The logo file was a JPG file and it didn't have transparency, which I need. So I made some modifications to the file in Photoshop, then saved it as a PNG. I save the PNG logo file to the prestashop/img directory, changed the logo within the Prestashop admin panel. The logo appears fine within the Appearance section. But, when I open up my store in my browser, it's not updating to the PNG file. It's still using the JPG file without transparency. I tried clearing cache in my browser, but that doesn't work either. Any ideas? Link to comment Share on other sites More sharing options...
rgwhitaker Posted August 13, 2013 Author Share Posted August 13, 2013 Another update: Okay, I got it to work. Here's what I did: In the header.tpl file of my theme, part of the line for the log reads: {$img_ps_dir}logo.jpg? I simply changed "logo.jpg?" to read "logo.png?" Is that okay? Will that mess with anything else? Link to comment Share on other sites More sharing options...
swsindonesia Posted August 14, 2013 Share Posted August 14, 2013 Another update: Okay, I got it to work. Here's what I did: In the header.tpl file of my theme, part of the line for the log reads: {$img_ps_dir}logo.jpg? I simply changed "logo.jpg?" to read "logo.png?" Is that okay? Will that mess with anything else? HI there it seemed you're solving your own issue quite well. Yes, you can just simply change that to png. Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Share Posted August 14, 2013 go to back office preferences >>images >> Use PNG only if the base image is in PNG format. then delete the logo and and upload again Link to comment Share on other sites More sharing options...
swsindonesia Posted August 14, 2013 Share Posted August 14, 2013 Hi Jiten rash, I'm afraid this is not an uploaded image, but a template specified image, so a simple change to the header.tpl to refere to correct image would be fine. Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted August 14, 2013 Share Posted August 14, 2013 thats what i m telling upload png logo Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 in my opinion changing the jpg to png is a good practice, it's because product pictures will have transparent background (without wierdy looking white borders) anyway, changing file name from logo.jpg to logo.png is also OK. Link to comment Share on other sites More sharing options...
MAGNUMSA Posted August 15, 2013 Share Posted August 15, 2013 Hi there, Could you please assist. I have uploaded a new header image in my pretashop site, - the new image shows on my Ipad but the old image shows when I look at the site with a computer. I am a mac user. Could you please assist? Thank You Link to comment Share on other sites More sharing options...
vekia Posted August 15, 2013 Share Posted August 15, 2013 try to clear cache in your browser. It looks like issue with cache. Link to comment Share on other sites More sharing options...
Rajesh Kumar Yadav Posted August 19, 2013 Share Posted August 19, 2013 It doesn't matter logo is jpg or png. If transparency is required then we prefer png. you can manually enter the image url path to test the bug. <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> above is default code. you can also define img src as <img class="logo" src="http://yoursitedomain.com/images/logo.jpg" alt="my site logo" title="my site slogan" width="100px" height="100px"/> alter your height and width value. Link to comment Share on other sites More sharing options...
rgwhitaker Posted August 19, 2013 Author Share Posted August 19, 2013 This can be marked as SOLVED. I got it resolved. Thanks for all responses! Link to comment Share on other sites More sharing options...
vekia Posted August 20, 2013 Share Posted August 20, 2013 glad to hear that another problem is solved. im going to mark this topic as [solved] too. best regards Link to comment Share on other sites More sharing options...
Recommended Posts