Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Better to use "em" rather than "px"?

Better to use "em" rather than "px"?

Started by dingoman on 22 May 2010, 2:34 PM · Views: 678

Results 1 to 4 of 4
22 May 2010, 2:34 PM
#1
dingoman avatar

dingoman

New Zenner

Join Date:
Apr 2010
Posts:
6
Plugin Contributions:
0

Post #1 by dingoman

I'm struggling with good ol 12541 but after weeks of pulling my hair out and then reading others have had problems with it and moved on to other templates.. I refuse to allow it to beat me. I have 2 questions.

  1. Many of the font sizes are 11px and i've been bumping up to 13px.. should I be using em's instead??

  2. I'm using mamp to prep the site on my mac and have so many files all over the place that seem to be required.. not just in the CUSTOM folders I created as tutorial instructed. What files are required for the site to work when I move to host server?

22 May 2010, 2:38 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #2 by schoolboy

Take a look HERE

20 years a Zencart User

22 May 2010, 3:11 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #3 by schoolboy

Your second point...

zencart will not work... not even on a LOCAL server ... unless the files are in the correct locations.

The CUSTOM (over-ride) system is well-documented on the forum and in the tutorials, so you need to find that information, read it, and establish what it all means.

Fundamentally, the "over-ride" system is a mechanism to allow users to develop CUSTOMIZED behaviour (where it is possible to do so), without doing potential damage to the CORE behaviour.

So the over-rides system consists of the CORE files, mirrored by their CUSTOMIZED counterparts.

This process, quite obviously, means that there will always be "duplicate" files... The original CORE file which should never be edited and which resides in its CORE folder...

... and a copied CUSTOM file, which can be edited, and which resides in the relevant CUSTOM folder.

The directory structure (tree), of CORE versus CUSTOM, must be maintained.

After you have created your CUSTOM files, you must ALSO retain the CORE files.

And unless all these files are in precisely the right places (folders), zencart will not function properly.

There is no facility for over-rides in the ADMIN section - only the CATALOG section of zencart.

One of the easiest ways to determine where a CUSTOM folder is needed, is to look out for the folders called "classic".

You will see these only in the following areas:

  • includes/languages/
  • includes/modules/
  • includes/templates/

Wherever you see a folder called "classic", you are "permitted" to create your own custom folder. So, for example, let's say you want a custom template called elvis_presley...

Look through all the directories in

includes/languages

and you will see, for example

includes/languages/classic

so, at that level you create a folder called elvis_presley

So you now have:
includes/languages/classic
includes/languages/elvis_presley

Looking further, you will see:
includes/languages/english/classic

So you can have:
includes/languages/english/elvis_presley

... and so on...

20 years a Zencart User

23 May 2010, 2:28 AM
#4
dingoman avatar

dingoman

New Zenner

Join Date:
Apr 2010
Posts:
6
Plugin Contributions:
0

Post #4 by dingoman

Brilliant! Thanks for the very detailed assist... appreciate your time.