May 2017
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031   

Calendar Calendar

Latest topics
» Kabaddi, Kabaddi, Kabaddi, Kabaddi......PHP?
Fri Jul 22, 2011 1:37 pm by shyamsunder

» Thousands of Free PHP Scripts Recommended
Wed May 18, 2011 10:33 am by bizboy12

» PHP form validation problem?
Wed Jan 12, 2011 1:25 pm by simy202

» string wrap
Sat Aug 02, 2008 2:06 pm by scvinodkumar

» retrieving current date rows
Tue Jul 15, 2008 3:25 am by scvinodkumar

» number in words
Tue Apr 29, 2008 3:10 pm by scvinodkumar

» Simple PHP Form Field Generator
Fri Apr 25, 2008 12:28 pm by scvinodkumar

» PHP password generator
Fri Apr 18, 2008 7:24 pm by scvinodkumar

» PHP Script to Extract Email Address from any text
Fri Apr 18, 2008 7:18 pm by scvinodkumar

Search
 
 

Display results as :
 


Rechercher Advanced Search

Affiliates
free forum
 


Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Can I Use An Image For the Sidebox Header?

View previous topic View next topic Go down

Can I Use An Image For the Sidebox Header?

Post  scvinodkumar on Fri Apr 04, 2008 9:58 pm

The short answer is yes. You can use two methods to achieve the result.

Using an image editor, create your image sets with a name for each sidebox you want to change and save your graphics to includes/templates/CUSTOM/images/ and upload it to your server.

In your includes/languages/CUSTOM/english.php find this line of code:

define('BOX_HEADING_CATEGORIES', 'Categories');

You can change it as follows:

define('BOX_HEADING_CATEGORIES', 'your_graphic_image.???');

Now in includes/modules/sideboxes/CUSTOM/categories.php Find this:

$title = BOX_HEADING_CATEGORIES;

and change it to:

$title = zen_image($template->get_template_dir(BOX_HEADING_CATEGORIES, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . BOX_HEADING_CATEGORIES, HEADER_ALT_TEXT);

Note: You would do this for each of your sideboxes.

Make the needed changes, save the files and upload to them to your server.

If you want to replace the default Zen Cart background image to be used for all the sideboxes use an image editor to create your image and save it to includes/templates/CUSTOM/images/ and upload it to your server.

Now open you stylesheet.css and find following:
.leftBoxHeading {
margin: 0em;
background: url(../images/your_background_image.jpg) #ff6699;
padding: 0.5em 0.2em;
}
.rightBoxHeading {
margin: 0em;
background: url(../images/your_background_image.jpg) #ff6699;
padding: 0.2em 0em;
}
Change the highlighted image file name in each of the URL functions , save the stylesheet and upload both files to them to your server.

scvinodkumar
Admin

Posts : 40
Join date : 2008-01-30

View user profile http://solutions.aforumfree.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum