Jump to content

Replacing category text with an image


Guest simplyequine

Recommended Posts

Guest simplyequine

I have searched through old posts but haven't found anything that matches my exact query.

I would like to replace the box title i.e. 'shop by category', 'language', 'latest products' etc with a graphic that basically says the same.

Any ideas?

Thanks :D

Link to comment
Share on other sites

I have searched through old posts but haven't found anything that matches my exact query.

I would like to replace the box title i.e. 'shop by category', 'language', 'latest products' etc with a graphic that basically says the same.

Any ideas?

Thanks :D

Hi,

a quick hack would be to edit lanuage/yourlanguage/lang_inc.php

find the box title - ie;

'information' => "Information",

change to;

'information' => "<img src='/images/yourimage.gif' alt='Store information'>",

(not too sure about the single quotes - and can't test from here...)

Jason

Link to comment
Share on other sites

Guest simplyequine

I tried that but it came back with this error:

Parse error: parse error, unexpected T_STRING, expecting ')' in /home/fhlinux181/s/simplyequine.co.uk/user/htdocs/shop/language/en/lang.inc.php on line 1421

:D

Link to comment
Share on other sites

Please help! :D

Hmm,

it works here. I don't have the Information Box, so I've used the Mailing List ...

'mailing_list' => "<img src='/images/logos/ccLogo.gif' alt='Store information'>",

I didn't get an error, and the ccLogo was shown as the title of the Mailing list box.

I'm using the current release of CC3, on an Apache server.

Make sure you locate the correct line, and include the trailing comma.

I'm guessing your store is in English, so make sure you're editing;

/www/language/en/lang.inc.php and you've put no extra characters on the line.

Jason

Link to comment
Share on other sites

Guest garysmith

You could just edit your styleTemplates/boxes and add the link to each graphic in the code.

An example currency box:

Before:

<!-- BEGIN: currency -->

<div class="boxTitleLeft">{LANG_CURRENCY_TITLE}</div>

<div class="boxContentLeft">

<select name="lang" class="dropDown" onchange="jumpMenu('parent',this,0)">

<!-- BEGIN: option -->

<option value="switch.php?r={VAL_CURRENT_PAGE}&currency={VAL_CURRENCY}" {CURRENCY_SELECTED}>{CURRENCY_NAME}</option>

<!-- END: option -->

</select>

</div>

<!-- END: currency -->

And after

<!-- BEGIN: currency -->

<div class="boxTitleLeft"><img src='/images/CurrencyBoxTitle.gif' alt='Currency'></div>

<div class="boxContentLeft">

<select name="lang" class="dropDown" onchange="jumpMenu('parent',this,0)">

<!-- BEGIN: option -->

<option value="switch.php?r={VAL_CURRENT_PAGE}&currency={VAL_CURRENCY}" {CURRENCY_SELECTED}>{CURRENCY_NAME}</option>

<!-- END: option -->

</select>

</div>

<!-- END: currency -->

As far as I can see it should work.

All the best

Gary

Link to comment
Share on other sites

Guest simplyequine

Thanks ever so much for that garysmith - it worked fine!

I knew it was a question of replacing the text with the img src, but just couldn't work out which file it was in and I got all confused.

Thanks for helping B)

Oh and do you know which files to edit to replace the text of 'in stock', 'price', 'production information' and 'quantity'?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...