Zen Follower
- Join Date:
- Jun 2008
- Posts:
- 338
- Plugin Contributions:
- 0
Huh??? <body id="indexHomeBody">?
I am trying to troubleshoot some sloppy code that was written for me by someone else.
As part of the debug process, discovered that a generic Zen-Cart store, such as the one at http://www.livedemo.com/scripts/zencart/, has a <body id="**index**"> while my store has a <body id="**indexHomeBody**">.
I combed all my .php and .css files and found no reference to "indexHomeBody".
I then discovered that the line responsible for outputting the <body> id is:
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
Which is identical in both the generic Zen-Cart store code and my store's code.
I am now confused. How is it possible that a generic store code produces <body id="**index**"> when its code should be appending 'Body' to it?
What am I missing?
How do I find out which PHP file is responsible for outputting a certain part/segment of the resultant HTML code of a given page?
Thank you!