View Single Post
  #10  
Old 11-21-2011, 12:28 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: 4.4.4 Site Won't Validate

Quote:
Originally Posted by cflsystems
Look in home.tpl - just before </body>. It calles load_defer_code and loads the css and js cached files. Same code is also loaded from service_head.tpl. I would assume the one in home.tpl is there just in case anything is loaded inline in other templates (for different modules) and not in <head>. Technically this code should not be there yes and moving it to head section will validate the page even with speedup tools enabled.

I moved both {load_defer_code type="css"} and {load_defer_code type="js"} from just before the "{if $active_modules.Wibiya}..."
to just after {include file="customer/service_head.tpl"}.

I then enabled the Socialize module, ran cleanup.php and the site validated.

Thanks.

Edit: I just noticed that by moving the load_defer_code that it removes the formatting on the product detail page for "Customers also bought", "Send to a Friend", etc. so it looks like it isn't really a fix.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote