angryquaker Posted October 13, 2008 Share Posted October 13, 2008 I would like to modify my infoboxes to show images for the links rather than the plain text. I'm pretty sure I've seen other sites doing this, but I don't recall any specifically. Standard Windows fonts don't give one much to work with, as far as just using those in the CSS. I'm sure there's a contribution or explanation of how to do this here somewhere, I just haven't had any luck in finding one. And I have been looking for a couple days now, but haven't found anything that really jumped out at me. I'm sure I'm just overlooking something, or not using the correct keywords. If anyone would care to point me in the right direction, I'd appreciate it greatly. TIA. Russ PS - Oh, and if there's some reason(s) why I shouldn't do this, I'd like to hear about it (those) as well. One: people are not wearing enough hats. Two: matter is energy. In the universe, there are many energy fields which we cannot normally perceive. Some energies have a spiritual source which act upon a person's soul. However, this soul does not exist ab initio, as orthodox Christianity teaches. It has to be brought into existence by a process of guided self-observation. However, this is rarely achieved, owing to man's unique ability to be distracted from spiritual matters by everyday trivia. Link to comment Share on other sites More sharing options...
angryquaker Posted October 13, 2008 Author Share Posted October 13, 2008 I've managed to get the infobox *headings* to display as images after a little tinkering, but I'm still hesitant to try hacking around with the actual links. Anyone? Russ One: people are not wearing enough hats. Two: matter is energy. In the universe, there are many energy fields which we cannot normally perceive. Some energies have a spiritual source which act upon a person's soul. However, this soul does not exist ab initio, as orthodox Christianity teaches. It has to be brought into existence by a process of guided self-observation. However, this is rarely achieved, owing to man's unique ability to be distracted from spiritual matters by everyday trivia. Link to comment Share on other sites More sharing options...
Guest Posted October 13, 2008 Share Posted October 13, 2008 but I'm still hesitant to try hacking around with the actual links. Anyone? Hesitate no more. Check out the following Click Me Link to comment Share on other sites More sharing options...
germ Posted October 13, 2008 Share Posted October 13, 2008 For example the links in the information box: $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); Say you have 4 gif's in the images folder you want to display named: shipping.gif privacy.gif conditions.gif contact.gif Then the code becomes: $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . tep_image(DIR_WS_IMAGES . 'shipping.gif', BOX_INFORMATION_SHIPPING) . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . tep_image(DIR_WS_IMAGES . 'privacy.gif', BOX_INFORMATION_PRIVACY) . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . tep_image(DIR_WS_IMAGES . 'conditions.gif', BOX_INFORMATION_CONDITIONS) . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . tep_image(DIR_WS_IMAGES . 'contact.gif', BOX_INFORMATION_CONTACT) . '</a>'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
angryquaker Posted October 14, 2008 Author Share Posted October 14, 2008 Bless your heart, Jim. That is exactly what I was looking for. I had already figured out the headings, Brian, but I appreciate you taking a moment to help, too. Thanks a million, gentlemen. That should keep me busy for a little while. ;) Russ One: people are not wearing enough hats. Two: matter is energy. In the universe, there are many energy fields which we cannot normally perceive. Some energies have a spiritual source which act upon a person's soul. However, this soul does not exist ab initio, as orthodox Christianity teaches. It has to be brought into existence by a process of guided self-observation. However, this is rarely achieved, owing to man's unique ability to be distracted from spiritual matters by everyday trivia. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.