space-out-ezpage-linksAn easy way to space out the EZ Page links in the sidebox on your zen cart website would be to do the following:

Create an overrides folder for your template – includes/templates/YOUR TEMPLATE FOLDER/sideboxes

Copy includes/templates/template_default/sideboxes/tpl_ezpages.php into the overrides folder.

Open the file and insert the code for a line break where I have indicated in RED below:

$content = “”;
$content .= ‘<div id=”‘ . str_replace(‘_’, ‘-‘, $box_id . ‘Content’) . ‘”>’;
$content  .= “\n” . ‘<ul style=”margin: 0; padding: 0; list-style-type: none;”>’ . “\n”;
for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {
$content .= ‘<li><a href=”‘ . $var_linksList[$i][‘link’] . ‘”>’ . $var_linksList[$i][‘name’] . ‘</a></li><br />‘ . “\n” ;
} // end FOR loop
$content  .= ‘</ul>’ . “\n”;
$content .= ‘</div>’;

Upload this file to the server.

Doing the line break like this as opposed to just adding a line height to all links sitewide will keep links that take up two lines together instead of spacing them out making them appear to be two separate links in your sidebox.

Leave a Reply

You must be logged in to post a comment.