Zen Cart Logo
Forums / General Questions / Logo is in wrong position

Logo is in wrong position

Views: 917

Results 1 to 8 of 8
10 Jun 2016, 05:03
#1
tmd2016 avatar

tmd2016

New Zenner

Join Date:
Jun 2016
Location:
Rexburg Idaho
Posts:
7
Plugin Contributions:
0

Logo is in wrong position

I changed the header.php file to have the company logo instead of the zen cart logo. I followed the instructions. Now the logo is all the way to the right and it cuts off the top of the page. the home, login and search. I am not sure what I did.

https://www.tablemountaindesigns.com/catalog

Thanks for any insight.

10 Jun 2016, 08:11
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Logo is in wrong position

Don't know if you fixed it or not, but looks fine on a mobile device. Image is towards the top and centered. Maybe it is just something visible on desktop computers?

10 Jun 2016, 11:45
#3
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Logo is in wrong position

On my desk top your top bar is also pushed up.

Your logo shows with a height of 99 vs the zencart logo in the template which has a height of 66.

Your larger image height may have pushed other things askew.

I don't use classic responsive, but on other responsive templates I use , I have far fewer headaches by using the size of existing features like logos that all seem to be tied in to the spacing of other things.

10 Jun 2016, 16:03
#4
tmd2016 avatar

tmd2016

New Zenner

Join Date:
Jun 2016
Location:
Rexburg Idaho
Posts:
7
Plugin Contributions:
0

Re: Logo is in wrong position

Thanks. It is the desktop that i see an issue on. I have not tried anything this am.

10 Jun 2016, 16:07
#5
tmd2016 avatar

tmd2016

New Zenner

Join Date:
Jun 2016
Location:
Rexburg Idaho
Posts:
7
Plugin Contributions:
0

Re: Logo is in wrong position

Yes it is the same on mine too. It is odd because I used that same size logo and had a tagline in and it was correct. I took out the tagline and it now moved it over and pushed everything up. Put the tagline back in and same results. I will try making the logo smaller. This is my first time working with zen cart and it has been a frustrating experience.

10 Jun 2016, 17:01
#6
tmd2016 avatar

tmd2016

New Zenner

Join Date:
Jun 2016
Location:
Rexburg Idaho
Posts:
7
Plugin Contributions:
0

Re: Logo is in wrong position

I put everything back with the zen logo and size in the header.php file. It still shows the logo over to the left and the top of the page cut off. I am not sure what i changed to make this happen. Any other suggestions? It is not the size of the logo since I put back the original. I am not sure what it could be. Maybe I changed another file that I should not have? I went over all my changes and everything looks correct.

10 Jun 2016, 21:12
#7
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,953
Plugin Contributions:
8

Re: Logo is in wrong position

welcome to the wonderful world of css is awesome! see:

https://goo.gl/fASXdC

your #navMainWrapper height is not high enough. because your image is too big, it's taking up more of the div. all CSS changes have other effects, so be careful what you do.

if this was me, i would create a new file here:

includes/templates/responsive_classic/css/stylesheet_custom.css

in that file, i would add the following code:

 #navMainWrapper {
    height: 45px;
}

i would then look at the site on any number of devices to see what happened. alternatively look into using developer tools for chrome of firefox. very helpful with css issues (as well as most web issues).

good luck!

13 Jun 2016, 03:36
#8
tmd2016 avatar

tmd2016

New Zenner

Join Date:
Jun 2016
Location:
Rexburg Idaho
Posts:
7
Plugin Contributions:
0

Re: Logo is in wrong position

Thanks I will try this!
I hate css code and try not to mess with it.
Personally I hope no one ever asks me to help them with another website again :)
I am used to sql, C# and asp.net for internal apps within companies. I just do not have time to learn anything else after 28 years of programming (and not websites) I am going to law school so I was rushing to just finish this so I could study. Thanks for helping me out. I appreciate it.