If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Replace side box header image and background of box and add footer

Replace side box header image and background of box and add footer

Started by clint6998 on 19 Nov 2012, 9:23 PM · Views: 752

Results 1 to 3 of 3
19 Nov 2012, 9:23 PM
#1
clint6998 avatar

clint6998

Zen Follower

Join Date:
Aug 2012
Posts:
106
Plugin Contributions:
0

Post #1 by clint6998

I have searched but cannot find a post to help me with what I am looking for.

I need to adjust the tables for the side boxes, adding nested tables for floating header image depending on how long the text is. I also need top add a background image and a footer image. I have looked through the files and must be missing something. I found the boxes.php file but cannot see what I should or should not take out.

I need it to look something like this (quick photoshoping):

Attachment 11491

Can anyone tell me what files need to be edited and where to find them?

Thanks,

Clint

19 Nov 2012, 9:59 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2 by gjh42

You don't need or want any HTML tables; there are none in stock Zen Cart layout beyond the #contentMainWrapper table that makes templates robust when modified by amateurs. Most, possibly all, of what you want can be done with CSS on the existing sidebox elements.
There is no boxes.php file that relates to sideboxes.

For the kind of styling you show, you would apply a background image and text-align: center; to .leftBoxHeading, .rightBoxHeading {} and whatever variable-width background image you want to .leftBoxHeading a, .rightBoxHeading a {} . You might need to add a wrapper div inside the heading and around the link to get distinctive edges to both sides of the heading text.

You would apply a background image to .leftBoxContainer, .rightBoxContainer {} for the main part of the box (either a horizontal slice that repeats vertically, or a complete image that is longer than the longest box you expect, depending on what you want it to look like).

The bottom of the box goes in a background image for .leftBoxContents, .rightBoxContents {} with background-position: center bottom;

If and only if you need to add a new wrapper, you can edit /includes/templates/your_template/common/tpl_box_default_left.php and its _right counterpart. (Copy from /template_default/common/.)

23 Nov 2012, 10:55 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #3 by gjh42

Note: As far as I can see, /includes/classes/boxes.php is obsolete; the HTML it builds is all nested tables and has not been used since about the time v1.3.0 was released.

  • @version $Id: boxes.php 3039 2006-02-15 00:29:28Z wilt $

This file should probably be deleted, or at least all the code that is no longer used removed if there is still some function it serves.