If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / to have sidebox's as images to match my buttons

to have sidebox's as images to match my buttons

Locked

Started by asim7183 on 26 Apr 2008, 3:10 AM · Views: 1,064

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
26 Apr 2008, 3:10 AM
#1
asim7183 avatar

asim7183

New Zenner

Join Date:
Apr 2008
Posts:
20
Plugin Contributions:
0

to have sidebox's as images to match my buttons

Hi guys, i was wondering if there is a way to change the side-boxes as background images so it can match my buttons?

i just finished creating my buttons and now decided to have my side-boxes to have the same look? right now it just doesnt click with my buttons as the button text is in white and side-boxes text is in black... please - any help will be appreciated... thanks in advance

(site is 2 weeks old and this is where i have reached...)

http://motortowne.co.uk/mts0079-p-9.html

26 Apr 2008, 4:32 AM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: to have sidebox's as images to match my buttons

asim7183:

Hi guys, i was wondering if there is a way to change the side-boxes as background images so it can match my buttons?

i just finished creating my buttons and now decided to have my side-boxes to have the same look? right now it just doesnt click with my buttons as the button text is in white and side-boxes text is in black... please - any help will be appreciated... thanks in advance

(site is 2 weeks old and this is where i have reached...)

http://motortowne.co.uk/mts0079-p-9.html

open your includes/templates/classic/css/stylesheet.css

find the following:

h3.leftBoxHeading, h3.leftBoxHeading a,
h3.rightBoxHeading, h3.rightBoxHeading a {
font-size: 1em;
color: #ffffff;
}

Change the highlighted portion as indicated

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

26 Apr 2008, 5:03 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: to have sidebox's as images to match my buttons

On a different subject: Your images are way too large in bytes for the web and this is slowing down your page loads.
Displays only render/display at 72DPI so an image that is 1in x 1in does not have to be more than 72x72 in bytes as ths only wastes disk space, bandwidth and increases loading time.

A good image editor can half that byte size and still retain quality.

Zen-Venom Get Bitten

26 Apr 2008, 10:04 AM
#4
asim7183 avatar

asim7183

New Zenner

Join Date:
Apr 2008
Posts:
20
Plugin Contributions:
0

Re: to have sidebox's as images to match my buttons

hi there kobra and clydejones, thanks for helping!

first of all kobra my image sizes, button sizes are all under 3kb and some in bytes! so i dont think its the buttons slowing the site down to load... (i thought the same about everyone else's site that their images are way too heavy as it takes quite a long time to load) 95% of my images are less than 3kb! i work with graphics - its my job and i understand what your saying, your absolutly right but i think it only slows down the site when visiting an international zen cart site. i checked my site at locals, mates and apple stores and boom! comes up like a bullet! i used to think the same before your reply but now im sure its not the images(well not in my case) its something else! do you think it could be the product images? average is 90kb?

clyde jones thanks but actually i was hoping not to just change the color...i was thinking of exactly the sam as my buttons...i wont be able to get the exact look as my buttons by just changing the color in the css file.

instead of background color is image possible? thanks

26 Apr 2008, 12:07 PM
#5
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: to have sidebox's as images to match my buttons

asim7183:

clyde jones thanks but actually i was hoping not to just change the color...i was thinking of exactly the sam as my buttons...i wont be able to get the exact look as my buttons by just changing the color in the css file.

instead of background color is image possible? thanks

www.zen-cart.com/tutorials/index.php?article=135

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

26 Apr 2008, 2:11 PM
#6
asim7183 avatar

asim7183

New Zenner

Join Date:
Apr 2008
Posts:
20
Plugin Contributions:
0

Re: to have sidebox's as images to match my buttons

oh great, thanks, will check test it tonight! :D

26 Apr 2008, 2:35 PM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: to have sidebox's as images to match my buttons

Just in case you're wondering, the extra > under the breadcrumb is in the templates/classic/templates/tpl_index_categories.php.

You might want to investigate the overrides system before going much further. Upgrading is a MAJOR pain if you make the mistake of using Classic as your template. You won't even find the tpl_index_categories.php in the Classic directory of a standard load. It's in the template_default which should be the basis for your custom directory.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

26 Apr 2008, 10:37 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: to have sidebox's as images to match my buttons

i used to think the same before your reply but now im sure its not the images(well not in my case) its something else! do you think it could be the product images? average is 90kb?
These are exactly what I was referring to as they are approx 2.5 in sq

72x72x2.5 = 12,960 bytes or 13k and not 90+k

Zen-Venom Get Bitten