Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Catagories go off page?

Catagories go off page?

Locked

Views: 1,767

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
12 Jan 2008, 12:36 AM
#1
loriw avatar

loriw

New Zenner

Join Date:
Nov 2006
Posts:
62
Plugin Contributions:
0

Catagories go off page?

Can someone tell me where or what I need to do to fix my categories?

HERE is the link to my site.

As you can see they are running off the template.

Any help would be great. Thanks.

12 Jan 2008, 1:06 AM
#2
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Catagories go off page?

Open up the stylesheet in includes/templates/YOUR_TEMPLATE/stylesheet.css

find #navColumnOne

  • if it doesn't exist, create it.

set these two styles inside the brackets {width:165px;padding-left:45px;}

This is a potential fix, there are other ways to do it, and if things go wrong, you will want to explore another way. This way should work for now though.

What template is it that you are using?

12 Jan 2008, 2:15 AM
#3
loriw avatar

loriw

New Zenner

Join Date:
Nov 2006
Posts:
62
Plugin Contributions:
0

Re: Catagories go off page?

Ooh...That did it!! :clap:

Thank you SO much!! I thought I had tried everything. :hug::smile:

12 Jan 2008, 3:38 PM
#4
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Catagories go off page?

Not sure if you plan on using the right column for anything, but if you decide to use it, you may need to slim down the left column. You could set the width of the left column in the admin->Configuration->Layout Settings to say 165px or so. This is just suggestion because the right column will appear small if you decide to display it.

If you don't decide to display it, you may want to widen the main content area to fill all the way to the right.

12 Jan 2008, 9:40 PM
#5
loriw avatar

loriw

New Zenner

Join Date:
Nov 2006
Posts:
62
Plugin Contributions:
0

Re: Catagories go off page?

Thanks for the great suggestions. How would I go about widening the main content? I don't plan on using the right column. :)

12 Jan 2008, 10:04 PM
#6
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Catagories go off page?

This may or may not be a tough one ;)

First you could try taking the display of the right column out which may automatically widen the center column. To do this either find #navColumnTwo{} in the style sheet and set it to #navColumnTwo{display:none}.

If you know your never going to use the right column you could take it right out of the code by opening includes/templates/template_default/common/tpl_main_page.php and removing:

<?php
//if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' && $_SESSION['customers_authorization'] != 0)) {
if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
  // global disable of column_right
  $flag_disable_right = true;
}
if (!isset($flag_disable_right) || !$flag_disable_right) {
?>
<td id="navColumnTwo" class="columnRight" style="width: <?php echo COLUMN_WIDTH_RIGHT; ?>">
<?php
 /**
  * prepares and displays right column sideboxes
  *
  */
?>
<div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?></div></td>
<?php
}
?>

If you could save the tpl_main_page.php to includes/templates/YOUR_CUSTOM_FOLDER/common
Otherwise save it to the same location, but realize that future updates to Zen Cart will over write the default template files.

This way may work better then the display:none technique of the stylesheet.

After doing one of these two, if the center column doesn't expand automatically, you may need to create a custom <div> tag to wrap around the center column and adjust it accordingly in the style sheet.

Post a reply if the center column doesn't fix up after removing the right column.

12 Jan 2008, 10:09 PM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: Catagories go off page?

The right column display is an admin setting,

Configuration > Layout Settings > Column Right Status - Global.

12 Jan 2008, 10:48 PM
#8
loriw avatar

loriw

New Zenner

Join Date:
Nov 2006
Posts:
62
Plugin Contributions:
0

Re: Catagories go off page?

Okay, I have set the set the navcolumn to display none and that did seem to do the trick. I also went into the golbal settings and changed the Column Right Status to "0" .

Now I have played a little to try and get my center column to stay inside the page but I really am not sure what to do next. lol So here I am. :P

Thank you both so much!! :)

12 Jan 2008, 11:06 PM
#9
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Catagories go off page?

The easiest fix I can think of would be to set #contentMainWrapper{padding-right:40px} if that selector doesn't exist, you would need to create it in your style sheet.

12 Jan 2008, 11:21 PM
#10
gjh42 avatar

gjh42

Black Belt

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

Re: Catagories go off page?

This has the same cause as your categories box. You have wide background edges that make the apparent size of the page much less than the actual structural width. After this declaration.centerColumn, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix { position: relative; margin: 0px 5px; background-color: #f1efe6; border: 2px dotted #33200d; }add this:```
.centerColumn {margin-right: 50px;}



Either of these fixes will give you the same result.
12 Jan 2008, 11:22 PM
#11
loriw avatar

loriw

New Zenner

Join Date:
Nov 2006
Posts:
62
Plugin Contributions:
0

Re: Catagories go off page?

That worked PERFECTLY!! :clap:

Thank you so much!! :hug: