beanzy Posted June 10, 2010 Posted June 10, 2010 When I click on a category,(any category selection), The main content in columns and rows of product extend out past header width. I checked settings on index.php and main table is set like all my other pages at width="1025" and is centered. When the category button is clicked, the url specifies my domain/catalog/index.php?cPath=21_23 The output of this $cpath I beleive is an end result of variables coming from (where? Any way to force the specific width to match the other pages? www.ladybugshoes.com/index.php?cPath=21_23 Every page except catalog/category pages are fine and display the correct width desired
Guest Posted June 11, 2010 Posted June 11, 2010 Roy, On the index page you have left and right columns. But on the other pages, you only have left column. This creates a problem because the page width is inconsistent as you navigate the website. You will have to set a body width on the pages that do not contain the right column in order to make the pages consistent. Chris
Guest Posted June 11, 2010 Posted June 11, 2010 @Chris. Are we looking at the same site? He is using both columns on all pages. @Roy. I see 2 problems. 1. index.php around line 240 you should have <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> That is right before this part <?php // optional Product List Filter if (PRODUCT_LIST_FILTER > 0) { Notice how your td width is 50%? Set it back to 100% 2. includes/modules/products_listing.php find <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> There is one at the top and one at the bottom, both slightly different. Notice how your table width is 1025? Set it to 100%. That is the main problem you are having.
beanzy Posted June 11, 2010 Author Posted June 11, 2010 @Chris. Are we looking at the same site? He is using both columns on all pages. @Roy. I see 2 problems. 1. index.php around line 240 you should have <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> That is right before this part <?php // optional Product List Filter if (PRODUCT_LIST_FILTER > 0) { Notice how your td width is 50%? Set it back to 100% 2. includes/modules/products_listing.php find <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> There is one at the top and one at the bottom, both slightly different. Notice how your table width is 1025? Set it to 100%. That is the main problem you are having. BK, your the bomb... Thanks so much. It was making me crazy. Thanks to you, I can save what hair I have left... lol keg of beer for ya...... Have a great weekend :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.