Logo changing

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi
I changed the logo (through admin panel) and it is huge now.
I need to "shrink" it to normal size.
Is it possible to do it through admin panel?
I have the 'code version' of nopCommerce, how can I change it through the code?
Sharon
6 years ago
[email protected] wrote:
Hi
I changed the logo (through admin panel) and it is huge now.
I need to "shrink" it to normal size.
Is it possible to do it through admin panel?
I have the 'code version' of nopCommerce, how can I change it through the code?
Sharon


The questions is why did this happened? Maybe you changed CSS of your theme and that's causing the problem. Did you have store URL to show us the problem?

Best,
Patryk
6 years ago
I once downloaded a version of a theme from a developer site that had a small bug. It had the wrong property in the CSS style. It was supposed to be:

.logo {
    max-width:100%;
}


..but the buggy stylesheet had it like this:

.logo {
    width:100%;
}


The best way if you can use FTP is to open your stylesheet up and fix that. If you aren't comfortable with that, I think you can do it in the admin like this:

go to admin area >> Configuration >> settings >> general settings >> Custom <head> tag
Copy/paste this into it and adjust the width to however many pixels wide that you want your logo to appear:
<style type="text/css">width: 300px;</style>


It should override whatever styles you have in your stylesheet because it will render after them.
6 years ago
oops...

<style type="text/css">.header-logo a img {width: 300px;}</style>
6 years ago
Hi nop4you and embryo

Well, embryo was right, I found the css and there was a '100% size of div' definition.
I changed it (didnnot publish it yet)

Sharon
6 years ago
Hi

Do you know where is:

.logo {
    max-height:....
}
or
.logo {
    height:...
}

what line?

Sharon
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.