I half found what I need; https://www.zen-cart.com/tutorials/i...hp?article=258.
From what I gather, you can adjust html/css elements in the tpl_ezipages.php file to alter the appearance of all ezipages listings.
What I want to do is make it so that just one link in the ezipages bar (i'm using ezipages as a navbar) is red to indicate which section of the store you are in. It doesn't have to involve clever script which varies which link is red, just a static colour change on the one link.
This is whats normally in the file
Code:
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$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>' . "\n" ;
} // end FOR loop
$content .= '</ul>' . "\n";
$content .= '</div>';
I'm new to php, so excuse my naivity and incorrect terminology.
Can I create a duplicate phrase which instead of this
Code:
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
, which appears to name div elements according to what I've added in the ezipages editor, can I specify a div name and apply styles only to it?
I thought I'd ask first coz I'll only break something otherwise...
Bookmarks