Forums / Templates, Stylesheets, Page Layout / Help - I followed the instructions and something

Help - I followed the instructions and something

Locked

Views: 1,321

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
22 Apr 2008, 7:24 AM
#1
lilrowo avatar

lilrowo

New Zenner

Join Date:
May 2007
Posts:
60
Plugin Contributions:
0

Help - I followed the instructions and something

went wrong. I was trying to change the Zencart logo with my own logo on my packing slip and invoices and I followed the instructions here:

https://www.zen-cart.com/tutorials/index.php?article=256

Now my admin page is totally messed up - The fonts are too large, and I can't see the category names. The icons are all misaligned and something is very wrong. I am lost as to what to do now. I should have left well enough alone. :cry:

22 Apr 2008, 7:32 AM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Help - I followed the instructions and something

Probably a stylesheet fault...

when you inserted this:-

.pageHeading img {width:200px; height:70px}

@media print {
    .pageHeading img {width:4in; height:1.4in}
}

Did you forget the closing } (or similar error?)

Make sure style declarations are delimited by { and } .

22 Apr 2008, 7:44 AM
#3
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: Help - I followed the instructions and something

If the suggestion previously given doesn't fix it, it's probably best to replace the admin/includes/stylesheet.css with one from the originally downloaded files and go through the process again. Be very careful that you are editing the right stylesheet.css (there's more than one, so verify the path is admin/includes/stylesheet.css).

Likewise, replace admin/header.php.

You can then make the modifications in the tutorial and if followed correctly should fix the problem and give you your logo the way you want it.

Another approach is to replace the files and then simply upload your logo image to the admin/images folder. Delete the existing logo.gif and rename your own logo image to logo.gif (or rename it before uploading). It's generally best to size your logo before uploading.

Ron

www.aspenshopsonline.com - ZenCart 1.3.9h
www.wilkssupply.com - ZenCart 1.3.9h
www.un-du.net - ZenCart 1.3.8a

22 Apr 2008, 11:17 PM
#4
lilrowo avatar

lilrowo

New Zenner

Join Date:
May 2007
Posts:
60
Plugin Contributions:
0

Re: Help - I followed the instructions and something

Thanks so much for the suggestions. I checked the PHP code in the stylesheet that I inserted and it looked like it was right. I tried deleting it and that didn't fix it either. I will have to try replacing the admin/includes/stylesheet.css and admin/header.php and hope that fixes it. I'm a little leary about doing that, but I'm not sure what else I can do. Will let you know the results.

23 Apr 2008, 9:15 AM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Help - I followed the instructions and something

lilrowo:

Thanks so much for the suggestions. I checked the PHP code in the stylesheet that I inserted and it looked like it was right. I tried deleting it and that didn't fix it either. I will have to try replacing the admin/includes/stylesheet.css and admin/header.php and hope that fixes it. I'm a little leary about doing that, but I'm not sure what else I can do. Will let you know the results.

If you follow some simple safeguards, then trying out modified php/css files is seldom a problem. Here's my own 5-point safeguard plan...

  1. ALWAYS ftp a COPY of the original file to your home computer, and do edits on the copy.
  2. BEFORE you ftp the edited copy BACK to the server, make sure you follow "over-ride" conventions (ie: when relevant, put the edited copy(ies) in your CUSTOM folder(s)).
  3. RE-NAME the original file (if it's a php or css file, I generally give it the file extension ".txt" . This prevents any chance of it being called by the programming)
  4. WRITE DOWN what you do, so you have a chronology of the steps you took, in case you need to reverse the procedure.
  5. When tinkering with the database ALWAYS create a backup first (and know the process for re-installing that backup)
24 Apr 2008, 7:51 PM
#6
lilrowo avatar

lilrowo

New Zenner

Join Date:
May 2007
Posts:
60
Plugin Contributions:
0

Re: Help - I followed the instructions and something

Okay, I replaced the admin/includes/stylesheet.css and the admin/header.php It worked somewhat, I can see the text and categories and such, but the heading graphics are missing and the format is not correct. Here's what my categories page looks like, and here's what it looked like before. What am I missing? Many thanks!

24 Apr 2008, 10:09 PM
#7
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: Help - I followed the instructions and something

It still looks like the admin/includes/stylesheet.css is messed up.
Did you try to modify it at some point with a copy/paste operation? If you pasted the code from a good stylesheet directly into the top of an existing stylesheet without deleting the previous code, it's possible you have code from both stylesheets in the same file. Whichever conflicting code appears last in the file takes precedence. That's my best guess at what is going on.

It's either that or your replacement stylesheet didn't get put in the right folder.

www.aspenshopsonline.com - ZenCart 1.3.9h
www.wilkssupply.com - ZenCart 1.3.9h
www.un-du.net - ZenCart 1.3.8a

5 May 2008, 8:58 PM
#8
lilrowo avatar

lilrowo

New Zenner

Join Date:
May 2007
Posts:
60
Plugin Contributions:
0

Re: Help - I followed the instructions and something

I still can't get it right. I think I'm going to leave it alone for the time being until I can figure it out. I may have to take some time and re-do the whole thing with the most recent update. :cry: