PHP forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
March 2024
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Calendar Calendar

Latest topics
» Kabaddi, Kabaddi, Kabaddi, Kabaddi......PHP?
Can I Use An Image For the Sidebox Header? EmptyFri Jul 22, 2011 1:37 pm by shyamsunder

» Thousands of Free PHP Scripts Recommended
Can I Use An Image For the Sidebox Header? EmptyWed May 18, 2011 10:33 am by bizboy12

» PHP form validation problem?
Can I Use An Image For the Sidebox Header? EmptyWed Jan 12, 2011 1:25 pm by simy202

» string wrap
Can I Use An Image For the Sidebox Header? EmptySat Aug 02, 2008 2:06 pm by scvinodkumar

» retrieving current date rows
Can I Use An Image For the Sidebox Header? EmptyTue Jul 15, 2008 3:25 am by scvinodkumar

» number in words
Can I Use An Image For the Sidebox Header? EmptyTue Apr 29, 2008 3:10 pm by scvinodkumar

» Simple PHP Form Field Generator
Can I Use An Image For the Sidebox Header? EmptyFri Apr 25, 2008 12:28 pm by scvinodkumar

» PHP password generator
Can I Use An Image For the Sidebox Header? EmptyFri Apr 18, 2008 7:24 pm by scvinodkumar

» PHP Script to Extract Email Address from any text
Can I Use An Image For the Sidebox Header? EmptyFri 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?

Go down

Can I Use An Image For the Sidebox Header? Empty Can I Use An Image For the Sidebox Header?

Post  scvinodkumar 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

https://solutions.aforumfree.com

Back to top Go down

Back to top

- Similar topics

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