Logo Size

hey guys, can some point me to where the css code for the logo size adjustment is located?. I can see it in firebug as an element but i cant actually find where it is to change in the files.





justdaiwa.com.au



cheers in advance.



Darren

Hello mrfish,



Please, read this topic Logo Size And Fluid Width - Store Design & Templates - CS-Cart Community Forums the same question was asked there.



Best regards, Alt-team

hi there, i did read that post and try that code and nothing seemed to change?

can someone point me to where that element for the logo is located?. I edit it in firebug and its perfect.

Hi @mrfish,

TPL file and location:```php


design/themes/[THEME_NAME]/templates/blocks/static_templates/logo.tpl

<br />
width and height is dynamic created depending of image you add as logo <img src="upload://ssa1U17ndImgNZSdwFNmOF2yUgM.png" class="bbc_emoticon" alt=";)"><br />
<br />
I hope that helps,<br />
<br />
---<br />
Valentin<br />
[color=#808080][size=2]part of hungryweb.net[/size][/color]

I just used theme editor to change logo and size… now i cant open the front end!



LESS parse error: failed at `



any ideas?



this software is doing my head in.

i just got an email back from the theme developers saying "

It looks like you placed a wrong symbol to one of the settings of

.less file of your store. Please, check it and correct.

"



what does this even mean? all i did was use the theme editor an added a logo?

thanks to ekaterina from cs cart support, there was a bunch of code that needed removing… beyond me really.



/GFONTS/

Error 400 (Font family not found)!!1
  * {
margin: 0;
padding: 0;
}
html,code {
font: 15px/22px arial,sans-serif;
}
html {
background: #fff;
color: #222;
padding: 15px;
}
body {
background: 100% 5px no-repeat;
margin-top: 0;
max-width: none:
min-height: 180px;
padding: 30px 0 15px;
}
* > body {
padding-right: 205px;
}
p {
margin: 22px 0 0;
overflow: hidden;
}
ins {
text-decoration: none;
}
ins {
color: #777;
}
/* Google Fonts logo styling*/
.projectLogo a {
font-family: "Open Sans", arial, sans-serif;
font-size: 32px;
font-weight: 300;
color: #63666a;
line-height: 1.375;
text-decoration: none;
}
.projectLogo img {
margin: -1px 0 -4px;
vertical-align: middle;
}

Google Fonts

Error (400): Missing font family

The requested font families are not available.

Requested: "Open Sans Light" (style: normal, weight: 400)

For reference, see the Google Fonts API documentation.


//GFONTS/

from /design/themes/webapp/styles/data/webapp.less

RE: “width and height is dynamic created depending of image you add as logo”

Umm by what method or algorithm?

I just see the same dimensions as the actual files size.

So what you'r saying is that the logo size cannot be set, but is set by some automatic smarts?

No easy way to so something so fundamental as change the logo image size?

Original size is used in the latest versions. If you want to change it, please edit the following file:



design\themes\YOUR_THEME\templates\blocks\static_templates\logo.tpl



You can find the width and height parameters there

Using the Responsive Themes + visual editor upload my logo is automatically re-sized to 107x60px - exactly half the original size, The mail logo meanwhile stays the correct size and renamed to mylogo@2x.png (original size). I replaced the re-sized primary logo with the proper size here: /images/logos/4



If the solution after replacing the logo file is to edit the logo.tpl file with hard coded width x height will it be over-written at every update?



{** block-description:tmpl_logo **}





[quote name='grafis' timestamp='1428245289' post='210337']

Using the Responsive Themes + visual editor upload my logo is automatically re-sized to 107x60px - exactly half the original size, The mail logo meanwhile stays the correct size and renamed to mylogo@2x.png (original size). I replaced the re-sized primary logo with the proper size here: /images/logos/4



If the solution after replacing the logo file is to edit the logo.tpl file with hard coded width x height will it be over-written at every update?



{** block-description:tmpl_logo **}






[/quote]

I have been struggling with the same issue, and really don't want to hard code the sizes... something you said struck me.. that the logo size is hacked in half. When looking at the folder on the back end, two files are created when you upload your logo...[list=1]
[*]logo.extension (the 1/2 size)
[*]logo@2x.extension (which is the normal size).
[/list]
Just for giggles, I created a logo at exactly twice the size, uploaded it, and Viola!!! the logo now appears on the front end in the size that I want, and all is well. No hacking he tpl file... no worrying about overwriting it at every update.

This seems like a bug to me. If cs-cart really needs a 2x size, then why not ask for one? Or indicate that logos must be uploaded at double the size...

Anyway, I hope this helps...
Have a great day!
Trauncher...