Jump to content

How to change logo sizes for prestashop


Recommended Posts

The logo size should be picked automatically when uploading it, see the following

 

list($width, $height, $type, $attr) = getimagesize(_PS_IMG_DIR_.Configuration::get('PS_LOGO_MOBILE'));
Configuration::updateValue('SHOP_LOGO_MOBILE_HEIGHT', (int)round($height));
Configuration::updateValue('SHOP_LOGO_MOBILE_WIDTH', (int)round($width));
 
So you can either change those values in the DB, or manually change heightxwidth in the template (header.tpl)
Link to comment
Share on other sites

if i were you i will apply these sizes manually to header.tpl file exactly as nemo mentioned above.

there is a code like:

<img class="logo img-responsive" src="{$logo_url}" alt="{$shop_name|escape:'html':'UTF-8'}"{if $logo_image_width} width="{$logo_image_width}"{/if}{if $logo_image_height} height="{$logo_image_height}"{/if}/>

replace:

{if $logo_image_width} width="{$logo_image_width}"{/if}

with width="200"

 

and 

{if $logo_image_height} height="{$logo_image_height}"{/if}

with height="50"

 

where 200 and 50 is a size (width and height) of your logo

  • Like 2
Link to comment
Share on other sites

  • 8 months later...

I tried this method but got no luck. Cleared cache and reloaded. Nothing. I see this thread is from 2014. Is there something different now? Also, will making the logo a set size affect the sites appearance on tablets and phones?

If I could shrink of move the default search field and possibly the cart block I would be super happy. 

Link to comment
Share on other sites

Hm, you said you hard modified values?

<img class="logo img-responsive" src="http://bardandbroad.com/img/bard-and-broad-store-logo-1426750373.jpg" alt="Bard and Broad Store" width="604" height="98">

I take it as that's too big right? Or are those measurements the one you added? If they are, you do have a problem with cache, so try clearing in manually (empty the cache/ compile folder)

Link to comment
Share on other sites

  • 2 weeks later...

Hi Guys

 

  I start a new installation for a jewelry shop ,prestashop 1.6, I still working on it, the problem is

 

  when I test  There is no carriers . I tried everything I check all the zones, countries , states

  set carriers by weight ,  measure ,ETC

 

  Everything is working  I set USPS, UPS, FEDEX and install the modules and I have subscriptions and

 

  API key for every carrier.

 

  I live in Puerto Rico ,US. Please need Help I have over two days dealing with this problem and there is no way

  to set carrier for my shop.

 

 I will appreciate any help !!!

 

 Thank You

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...