Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2006
    Posts
    62
    Plugin Contributions
    0

    help question 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.

  2. #2

    Default 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?

  3. #3
    Join Date
    Nov 2006
    Posts
    62
    Plugin Contributions
    0

    Default Re: Catagories go off page?

    Ooh...That did it!!

    Thank you SO much!! I thought I had tried everything.

  4. #4

    Default 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.

  5. #5
    Join Date
    Nov 2006
    Posts
    62
    Plugin Contributions
    0

    Default 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. :)

  6. #6

    Default 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:
    Code:
    <?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.
    Last edited by rainthebat; 12 Jan 2008 at 11:08 PM. Reason: adds

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Catagories go off page?

    The right column display is an admin setting,

    Configuration > Layout Settings > Column Right Status - Global.

  8. #8
    Join Date
    Nov 2006
    Posts
    62
    Plugin Contributions
    0

    Default 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.

    Thank you both so much!! :)

  9. #9

    Default 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.

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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
    Code:
    .centerColumn, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix {
      position: relative;
      margin: 0px 5px;
      background-color: #f1efe6;
      border: 2px dotted #33200d;
    	}
    add this:
    Code:
    .centerColumn {margin-right: 50px;}

    Either of these fixes will give you the same result.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Product Catagories running off page
    By desertmoon in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Oct 2010, 03:06 AM
  2. Help Remove catagories off main page, but list subcatagories of main page
    By MadPricerSales in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Mar 2010, 04:14 AM
  3. How to turn off the catagories list in header?
    By firewifeplus4 in forum Basic Configuration
    Replies: 2
    Last Post: 10 Jun 2007, 02:51 AM
  4. Sub catagories push whole website off-center
    By BryanKollar in forum Basic Configuration
    Replies: 3
    Last Post: 14 Jul 2006, 01:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg