I added the special offer from the top of the page to the tabs in the header. So now my tabs are
Home, Special offer, log in , account, basket, checkout
Problem is when special offer is selected the tab doesn't change to active color. The home tab is still shown as the active tab.
I guess it has something to do with id="tab_special" ..any idea what I can do?
Code: Select all
<div class="div4">
<a href="<?php echo $home; ?>" id="tab_home"><?php echo $text_home; ?></a>
<a href="<?php echo $special; ?>" id="tab_special"><?php echo $text_special; ?></a>
<?php if (!$logged) { ?>
<a href="<?php echo $login; ?>" id="tab_login"><?php echo $text_login; ?></a>
<?php } else { ?>
<a href="<?php echo $logout; ?>" id="tab_logout"><?php echo $text_logout; ?></a>
<?php } ?>
<a href="<?php echo $account; ?>" id="tab_account"><?php echo $text_account; ?></a>
<a href="<?php echo $cart; ?>" id="tab_cart"><?php echo $text_cart; ?></a>
<a href="<?php echo $checkout; ?>" id="tab_checkout"><?php echo $text_checkout; ?></a></div>