Jump to content

[SOLVED] Logo not appearing


Recommended Posts

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 by vekia (see edit history)
Link to comment
Share on other sites

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?

  • Like 2
Link to comment
Share on other sites

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

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

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

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

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

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

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

×
×
  • Create New...