Youx Posted December 18, 2014 Share Posted December 18, 2014 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 More sharing options...
WSH90 Posted December 20, 2014 Share Posted December 20, 2014 (edited) 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 December 20, 2014 by WSH90 (see edit history) Link to comment Share on other sites More sharing options...
Youx Posted December 20, 2014 Author Share Posted December 20, 2014 For sure if someone can help me....if I ask, is because I don t know how to do it.... Link to comment Share on other sites More sharing options...
dioniz Posted December 21, 2014 Share Posted December 21, 2014 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 More sharing options...
Youx Posted December 22, 2014 Author Share Posted December 22, 2014 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... Link to comment Share on other sites More sharing options...
WSH90 Posted December 23, 2014 Share Posted December 23, 2014 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 More sharing options...
Youx Posted December 23, 2014 Author Share Posted December 23, 2014 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 More sharing options...
Youx Posted December 23, 2014 Author Share Posted December 23, 2014 I found a solution without creating a new class. I just created an exception. #category #header_logo .img-responsive { max-width: 130%; } Link to comment Share on other sites More sharing options...
WSH90 Posted December 24, 2014 Share Posted December 24, 2014 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. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now