Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Change header text in left column to image based buttons


Recommended Posts

Can anyone tell me how to change the text headings in the left column to a button. I have created buttons for the headings 'Categories', 'Shopping Cart', 'Information' etc. and I'd like to replace the text with these buttons.


This is the code now:

$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);


I have tried this:

$info_box_contents[] = array('image' => DIR_WS_IMAGES . 'button.gif');


This does not work at all. Can anyone help please? Thanks.

Link to comment
Share on other sites

$info_box_contents[] = array('text' => '<img src="some_image.jpg" alt="" >';




Thanks, tried that but comes up with errors. Also tried it without the ' ' and that also gets errors. Thanks anyway.


Any other ideas?

Link to comment
Share on other sites

Yes, it does work:


$info_box_contents[] = array('text' => '<img src="some_image.gif" alt="" >');


The end ) was left off. I added that and it totally works fine. Many many apologies for saying it didn't work before.


Thanks very much.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...