Jump to content

Logo size


Recommended Posts

Hello,

 

I am facing issues with the logo size. I understood the prestashop re-size it to the size that can fit with the website, however it is showing bigger than it should in our website.

 

I have checked the global CSS but nothing seems wrong, any help?

 

www.supermart24.com

 

Thanks

Link to comment
Share on other sites

size of the logo that you see on your website is related to the size that you uploaded in back office. You can change size of the logo in several ways.

  1. upload logo with correct image size (related to your theme construction)
  2. change logo css styles (width and height params)
  3. modify the header.tpl file (inline width and height params value change)

  • Like 1
Link to comment
Share on other sites

Hello,

 

Thank you for the help, kindly guide me how to do the last one to change the header.tpl

 

what I do not understand is why this happened? as the logo was showing the right size, and without we do anything it start showing like that?

Link to comment
Share on other sites

go to: themes/your_theme/header.tpl

 

you've got there something like:

<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}/>

 

remove this: {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} and then - define inline style="" tag with own height & width parameteres, for example like this:

 

<img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" style="width:100px; height:50px;"/>

 

you must use own correct width & height values

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...