New Zenner
- Join Date:
- May 2008
- Location:
- Italy
- Posts:
- 83
- Plugin Contributions:
- 0
alt text to pictures
Hi all
How can i add alt text to pictures? Thanx
Views: 867
New Zenner
Hi all
How can i add alt text to pictures? Thanx
Zen Follower
I simply googled "zen cart alt text images" and this is the solution I immediately found:
New Zenner
i would like some alt text on home and login pictures,not in product pictures!!
New Zenner
This is a part of the code:
<ul class="back">
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?=zen_image(DIR_WS_TEMPLATE.'images/'.'/bottonehome.gif')?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?=zen_image(DIR_WS_TEMPLATE.'images/'.'/bottonelogoff.gif')?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?=zen_image(DIR_WS_TEMPLATE.'images/'.'/bottoneaccount.gif')?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?=zen_image(DIR_WS_TEMPLATE.'images/'.'/bottonelogin.gif')?></a></li>
<?php } } ?>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?=zen_image(DIR_WS_TEMPLATE.'images/'.'/bottonecarrello.gif')?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?=zen_image(DIR_WS_TEMPLATE.'images/'.'/bottoneconfermaordine.gif')?></a></li>
<?php }?>
</ul>
New Zenner
ok i solved myself!!
The way to do that is:
change:
zen_image(DIR_WS_TEMPLATE.'images/'.'/bottonelogin.gif')?>
with:
zen_image(DIR_WS_TEMPLATE.'images/'.'/bottonelogin.gif','alt text')?>
Thanx anyway....:smile:
Fields marked required must be completed.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.