Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Image for 'centerBoxHeading'

Image for 'centerBoxHeading'

Locked

Views: 914

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
26 Jul 2007, 9:25 PM
#1
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Image for 'centerBoxHeading'

Hello, I'm trying to replace the 'centerBoxHeading' titles 'New Products' 'Featured Products' etc. with an image. Think I've figured out where to do it: e.g. in new_products.php

$title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . '</h2>';

possibly needs to replaced with:

$title = '<h2 class="centerBoxHeading">' . 'Image Here!' . '</h2>';

but I'm not sure what to write for 'Image Here!'

Patrick.

26 Jul 2007, 9:31 PM
#2
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Image for 'centerBoxHeading'

PGlad:

Hello, I'm trying to replace the 'centerBoxHeading' titles 'New Products' 'Featured Products' etc. with an image. Think I've figured out where to do it: e.g. in new_products.php

$title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . '</h2>';

possibly needs to replaced with:

$title = '<h2 class="centerBoxHeading">' . 'Image Here!' . '</h2>';

but I'm not sure what to write for 'Image Here!'

Patrick.

something like this:
$title = '<h2 class="centerBoxHeading">' . '<img src="imagelocationhere/imagenamehere.jpg" alt="alt text here" title="title of link here" width="100" height="20" />' . '</h2>';

26 Jul 2007, 10:07 PM
#3
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Image for 'centerBoxHeading'

I was trying to do something like that but for some stupid reason I forgot to use the <> tags around the image path. I'm amazed at my own stupidity at times!

Anyway that's done the trick.

Thank you!