Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Help Moving Content!!

Help Moving Content!!

Locked

Views: 1,233

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
29 Aug 2007, 7:32 PM
#1
ryanwithanr avatar

ryanwithanr

New Zenner

Join Date:
Dec 2006
Posts:
26
Plugin Contributions:
0

Help Moving Content!!

Ok here is the site: www.tomsts.com

I'm trying to move the products to the center column. I know how to adjust the sizes of the column, however, I cannot figure out how to get the products and content to load in the center column.

I searched the 'layout boxes controller' to no avail. I'm not sure how to tell the content to load in the center, leaving me the far right column for ads.

Any help would be greatly appreciated.

29 Aug 2007, 7:55 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Help Moving Content!!

Your template has been hard-coded by the maker, Template Monster, to move the "right column" (#navColumnTwo) to the center, and the "center column" to the right.
In this case, they were right to do that, as there is not a better way to achieve the effect. (Although they have stupidly added spacer <td>s instead of specifying margins in the stylesheet.)

You should be able to reverse this by editing /includes/templates/theme028/common/tpl_main_page.php and moving the #navColumnTwo code back to its original place after the center column code. Compare with /includes/templates/template_default/common/tpl_main_page.php to see what it should look like. While you are at it, you might want to delete the two spacer <td> elements, and then edit your stylesheet to give margins you desire to the columns.

30 Aug 2007, 3:32 PM
#3
ryanwithanr avatar

ryanwithanr

New Zenner

Join Date:
Dec 2006
Posts:
26
Plugin Contributions:
0

Re: Help Moving Content!!

I will give it a shot! Thanks for the info.

4 Sep 2007, 6:11 PM
#4
ryanwithanr avatar

ryanwithanr

New Zenner

Join Date:
Dec 2006
Posts:
26
Plugin Contributions:
0

Re: Help Moving Content!!

gjh42:

Your template has been hard-coded by the maker, Template Monster, to move the "right column" (#navColumnTwo) to the center, and the "center column" to the right.
In this case, they were right to do that, as there is not a better way to achieve the effect. (Although they have stupidly added spacer <td>s instead of specifying margins in the stylesheet.)

You should be able to reverse this by editing /includes/templates/theme028/common/tpl_main_page.php and moving the #navColumnTwo code back to its original place after the center column code. Compare with /includes/templates/template_default/common/tpl_main_page.php to see what it should look like. While you are at it, you might want to delete the two spacer <td> elements, and then edit your stylesheet to give margins you desire to the columns.

Is there a way to tell the products to load in the center column as opposed to swapping the columns all together?

4 Sep 2007, 7:26 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Help Moving Content!!

No, that is not practical.

The columns were swapped once, they can be swapped back. First make a copy of tpl_main_page,php, and name it tpl_main_page.bak. This will protect you in case you mess up.

In tpl_main_page,php, find the <td id="navColumnTwo"... tag. Now go down the file until you see a </td> tag. That entire section is what you want to move.

Locating the spot to move it to will be a little trickier, as there may not be such good landmarks.

Find this near the bottom of tpl_main_page.php:```php

</div> </td> <td width="5"><img src="includes/templates/theme028/images/spacer.gif" alt="" width="5px" height="3px" /></td> </tr> </table> ```It probably won't look exactly like that, because there will be some PHP code in the file, but the important part is the </td> and </tr> tags on their own lines just before the </table>. (The "<td width="5"><img src="includes/templates/theme028/images/spacer.gif" alt="" width="5px" height="3px" /></td>" is a TM stupidity that they think they need to use instead of giving a margin to the footer. You can delete it or ignore it.)

Cut and past the whole section described above, putting it just after the solitary </td>.

That's it!