Post by SunehraTech » Mon Aug 12, 2013 7:08 am

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?

New member

Posts

Joined
Sun Jun 24, 2012 1:19 am

Post by butte » Mon Aug 12, 2013 10:08 am

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.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by SunehraTech » Tue Aug 13, 2013 5:13 am

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

New member

Posts

Joined
Sun Jun 24, 2012 1:19 am

Post by butte » Tue Aug 13, 2013 5:24 am

(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.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by GoGo OpenCart » Tue Aug 13, 2013 7:29 am

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... :)

See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart


User avatar
Active Member

Posts

Joined
Mon Nov 14, 2011 11:30 pm

Post by butte » Tue Aug 13, 2013 7:59 am

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.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am
Who is online

Users browsing this forum: No registered users and 15 guests