Zen Cart Logo

Add new center box

Locked

Views: 1,585

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
20 Sep 2007, 11:51 PM
#1
themusician avatar

themusician

New Zenner

Join Date:
Jun 2007
Posts:
64
Plugin Contributions:
0

Add new center box

Hello,

I am interested in creating a new center box for displaying on the homepage. Is is possible to clone an existing center box like possible with modules?

When creating a new center box, what steps must I ensure to keep the override system intact?

Thank you,

TheMusician:lookaroun

21 Sep 2007, 6:35 PM
#2
themusician avatar

themusician

New Zenner

Join Date:
Jun 2007
Posts:
64
Plugin Contributions:
0

Re: Add new center box

For anyone interested in doing this, I got it to work although it is not pretty and I am sure there is a better way.

The center column boxes are added via the tpl_main_page.php, so open it up and make sure you save it in your custom folder.

after the ```php
require ($body_code); ?> I added this

<div class="centerColumn"> <div class="centerBoxWrapper"> <h2 class="centerBoxHeading">Headline goes here</h2> <div id="RSS" style="width:100%;"> <?php (HTML or PHP goes here, just remove the php tages, etc...) ?> </div> </div> ```

I had to make a new div and alter it's style in stylesheet.css.

#RSS {
    background-color:#ffffff;
    margin-top:-13px;
}
#RSS h2 {
    padding-top:10px;
    color:#a34134;
}

HTH