Jump to content

How to change img class for Header Logo


Recommended Posts

Hi everyone,

 

I would like to know how to create a new img responsive class for the header logo?

I would like to remove the header logo from "class:img responsive" to a new class like "class:img logo responsive".

 

Thx for your help.

 

Prestashop v1.6.0.9

Link to comment
Share on other sites

Hi everyone,

 

I would like to know how to create a new img responsive class for the header logo?

I would like to remove the header logo from "class:img responsive" to a new class like "class:img logo responsive".

 

Thx for your help.

 

Prestashop v1.6.0.9

Hi, Do you mind share with us the purpose of doing this?

Edited by WSH90 (see edit history)
Link to comment
Share on other sites

Open yourdomain\themes\default-bootstrap\header.tpl and find this code:

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

Change it here

Link to comment
Share on other sites

Thx for your answer, but my question was "how to create a new img responsive class".

If I change manually the class, the image is not displayed in responsive...

That's why I asking you what's the purpose/reason of create a "new img respnsive class" where the default  bootstrap theme already have it. Why don't you use "img-responsive"

Link to comment
Share on other sites

That's why I asking you what's the purpose/reason of create a "new img respnsive class" where the default  bootstrap theme already have it. Why don't you use "img-responsive"

 

Because the header logo and product image are in img responsive class with the same max width command and i would like 130% for the header logo and 100% for product image.

 

My question is not why i want to doing that.

 

My question is how to do it.

 

If someone know how to create a new  image responsive class.....

Link to comment
Share on other sites

Because the header logo and product image are in img responsive class with the same max width command and i would like 130% for the header logo and 100% for product image.

 

My question is not why i want to doing that.

 

My question is how to do it.

 

If someone know how to create a new  image responsive class.....

 

Hi, the reason I asked "WHAT IS THE PURPOSE DOING THIS" twice is to know whether any default bootstrap class can solve your problem without creating another new class. Hope you can understand.

 

It's good that you've found a solution. :)

  • Like 1
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...