View Full Version : HUGE Whitespace issue
jnewlander
06-28-08, 04:53 AM
Hello Everyone,
I am having a tough time with my sitemap. There are several hundreds, if not thousands, of lines of whitespace at the top of the page, above the DOCTYPE declarations. After reading the forums, I tried to remove every item on the page, one at a time, and nothing changes the problem. There are no Blockquote tags used and there are no third party modules used on that page. Any help would be greatly appreciated. The page takes a long time to load, but here is a link: http://www.ependable.com/SMAP.html Thank you in advance for any help.
I don't see it - you must have fixed it!
But I would maybe change your products to 2 across instead of 3. I have a horizontal scroll to view all.
It is still there. You have to view page source to see it. That is quite a few blank lines. I would try deactivating the left and right fly out menus to see if that changes it.
Don't think I've ever seen that much whitespace. It's the cause of the deadly slow pageloads.
I would start de-activating template items one by one. This is the most likely cause. If that doesn't locate it, then start commenting out page items one by one starting with the javascript.
jnewlander
06-29-08, 02:12 AM
Hi All,
Thank you for your replies. I tried removing all the items on that page individually. If I remove the "inventory" item, the page loads fine, but of course, there are no categories listed. I removed the default product list from this page since we will soon have several hundred-thousand products. Is there a way I can get the category list to display without the inventory item?
Apparently the inventory item contains a product list because I created an XML sitemap to send to Google, and this XML sitemap contains not only the categories, but also all products on the site. I am guessing this is where the whitespace and slow page loads begins.
Any ideas on how to keep the category list and eliminate the problems? Possibly with the category tree? Thank you in advance for your help.
I'll post the page template and sitemap code below:
Page Template:
<mvt:item name="html_profile" />
<head>
<title>&mvt:store:name;: Sitemap</title>
<base href="&mvt:global:basehref;">
<mvt:item name="prodctgy_meta" param="ctgy" />
<mvt:item name="head" param="head_tag" />
</head>
<mvt:item name="body">
<mvt:item name="hdft" param="global_header" />
<font size="1">
<table border="0" cellpadding="0" cellspacing="0" width="93%">
<tr><td align="center" valign="top" width="80%">
<mvt:item name="hdft" param="header" />
<br>
<mvt:item name="sitemap" />
<mvt:item name="hdft" param="footer" />
</td></tr>
</table>
</font>
<mvt:item name="hdft" param="global_footer" />
</mvt:item>
</html>
Sitemap:
<mvt:if expr="l.settings:category_count GT 0">
<p style="text-align: center; color: #CC0033; font: bold 12pt Century Gothic">Please select a category:</p>
<table border=0 cellpadding=2 cellspacing=0 width="93%">
<tr>
<mvt:foreach iterator="category" array="categories">
<mvt:if expr="(pos1 MOD 3) EQ 1">
</tr><tr>
</mvt:if>
<td align="left" valign="top">
<mvt:item name="fonts" param="body_font">
<a href="&mvt:category:link;">&mvt:category:name;</a><br>
</mvt:item>
</td> </mvt:foreach>
</tr>
</table>
</mvt:if>
<br><br>
I've been thinking about this and there's something I don't understand.
Your storefront shouldn't require inventory activated. Also, I can't think of any connection between inventory tracking and categories. I don't use inventory on any of my category pages.
Just de-activate inventory under the Items tab if you're not using it on that template.
jnewlander
06-30-08, 12:10 AM
Hi Steve,
Thank you for your response. The inventory item must have been added to the sitemap by default. After I de-activated it under the items tab, the list of categories did not display on the page. I currently have the category tree item on the page, but it is only displaying the top level categories, none of the child categories. Any ideas how to add all categories to the sitemap, preferably in a tree format. Thanks.
Couple of ways you can go here. If you want the category tree fully expanded on 1 page but collapsed in the regular category tree, then I suggest this solution:
Multi-Column Cattree (http://www.miva-skins.com/mm5/merchant.mvc?Screen=PROD&Store_Code=1&Product_Code=cattree1003&Category_Code=CATTREES)
You can also use something like Sebenza's Cattree module which has an "expand" attribute.
jnewlander
06-30-08, 10:27 PM
Hi Steve,
Thanks for the help. I'm going to get the first module you mentioned. It is exactly what I am looking for. I was planning on getting the toolkit anyway. Have a great day!
I appreciate everyone's help with this issue.
Thanks,
Jeff
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.