Guest simplyequine Posted October 11, 2006 Share Posted October 11, 2006 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 Quote Link to comment Share on other sites More sharing options...
vokf Posted October 11, 2006 Share Posted October 11, 2006 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 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 Quote Link to comment Share on other sites More sharing options...
Guest simplyequine Posted October 11, 2006 Share Posted October 11, 2006 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 Quote Link to comment Share on other sites More sharing options...
Guest simplyequine Posted October 11, 2006 Share Posted October 11, 2006 Also tried it with brackets, without the extra "'s and inside an tag but none of them worked :D Quote Link to comment Share on other sites More sharing options...
Guest simplyequine Posted October 11, 2006 Share Posted October 11, 2006 Please help! :D Quote Link to comment Share on other sites More sharing options...
vokf Posted October 11, 2006 Share Posted October 11, 2006 Please help! 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 Quote Link to comment Share on other sites More sharing options...
Guest garysmith Posted October 11, 2006 Share Posted October 11, 2006 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}¤cy={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}¤cy={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 Quote Link to comment Share on other sites More sharing options...
Guest simplyequine Posted October 13, 2006 Share Posted October 13, 2006 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 Oh and do you know which files to edit to replace the text of 'in stock', 'price', 'production information' and 'quantity'? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.