Page 1 of 1

Logo Re-Size in OpenCart 1.5.3.0

Posted: Mon Aug 12, 2013 7:08 am
by SunehraTech
Checkout:

www.sunehratech.pk

And see Small part of my logo is appearing

My logo is : http://sunehratech.pk/image/data/sunehra-logo.png

Please how can i make it fit there?

Re: Logo Re-Size in OpenCart 1.5.3.0

Posted: Mon Aug 12, 2013 10:08 am
by butte
The image is 550px × 300px with 53.37 KB (54,651 bytes), which is not terribly oversize except in relation to where it is supposed to sit, so where you have in source <img src="http://sunehratech.pk/image/data/sunehra-logo.png" title="SunehraTech.PK" alt="SunehraTech.PK" /> and it is not seeing /image/cache/data/ instead, you have at least three remedies, (1) give it /image/cache/data/ and a consequent thumbnail instead, or (2) give it something along the lines of <img src="http://sunehratech.pk/image/data/sunehra-logo.png" width="275" height="150" title="SunehraTech.PK" alt="SunehraTech.PK" /> instead and trim dimensions further if necessary, such as down to maybe even width="110" height="70" or even less than that, or (3) in .css change its values,

from
height: 300px;
width: 550px;

to
height: 150px;
width: 275px;

or
height: 70px;
width: 110px;

for example. Figure out which way among those and others you feel is simplest for you to do.

Re: Logo Re-Size in OpenCart 1.5.3.0

Posted: Tue Aug 13, 2013 5:13 am
by SunehraTech
I'm using normal theme from OpenCart website. I cant understand wht u saying.. Please can u name the file.?? i will give you from my cpanel where opencart installed. U fix and give me and i will upload.. i will be thankful to u

Re: Logo Re-Size in OpenCart 1.5.3.0

Posted: Tue Aug 13, 2013 5:24 am
by butte
(1) The two are
category/view/theme/default/template/header.tpl and
category/view/theme/default/stylesheet/style.css

(2) Go ahead and send the user/pass via PM (not here) and I'll look at it. If I change it I'll either upload it on the spot -- or plant it here so that you can go through the edit motions and remember them and upload.

Re: Logo Re-Size in OpenCart 1.5.3.0

Posted: Tue Aug 13, 2013 7:29 am
by GoGo OpenCart
Open:

Code: Select all

.../catalog/view/theme/green_electronic/stylesheet/stylesheet.css
Find:

Code: Select all

#header #logo {
	position: absolute;
	margin:0;
	top: 0px;
	left:0px;
	overflow:hidden;
	width:240px;
	height:100px;
}
Adjust the "width" and "height" in the code above, according your image size, which is 550px X 300px, but I would suggest you to lower down the dimensions of the image a little bit, because your logo, as it is now, looks quite big... :)

Re: Logo Re-Size in OpenCart 1.5.3.0

Posted: Tue Aug 13, 2013 7:59 am
by butte
That's what he could not even find in order to do it. Changing just w x h seems to do it, changing overflow wouldn't hurt.