walter6 Posted July 23, 2012 Share Posted July 23, 2012 Hi, I've spent several hours now trying to get rid of a mysterious space right after the <div id="center_column"> tag on the product page. See here: https://dl.dropbox.com/u/5798631/space.png I have not made any changes to PHP files. It has nothing to do with the header.tpl file since it only gets added on the Product page. I've even tried to exclude the breadcrumb.tpl file and I've left the product.tpl file completely blank and the space was STILL there! Where else could this piece of empty space come from? Hope you guys can help me to solve this mystery Link to comment Share on other sites More sharing options...
Carlsen Posted July 24, 2012 Share Posted July 24, 2012 (edited) Hi Walter6, I experience this problem when my files are encoded the wrong way. Try, with Notepad++ or another text editor with that feature, to open the header.tpl and go to Encoding -> Convert to UTF-8 without BOM. Edited July 24, 2012 by FPDK (see edit history) Link to comment Share on other sites More sharing options...
walter6 Posted July 24, 2012 Author Share Posted July 24, 2012 Hey, thanks for your suggestion, I've tried that and the space has changed just a little bit, but it's still there: https://dl.dropbox.com/u/5798631/space_after.JPG No idea where "it's from" Link to comment Share on other sites More sharing options...
Carlsen Posted July 24, 2012 Share Posted July 24, 2012 What about converting to ANSI then? Link to comment Share on other sites More sharing options...
walter6 Posted July 24, 2012 Author Share Posted July 24, 2012 (edited) Tried it and didn't help either. I found out that what actually makes a little difference (but only in the HTML...the appearance on the page doesn't change) is, when I change the end of the header.tpl file like that: https://dl.dropbox.c...5798631/dif.png Where do those 2 files (header.tpl & product.tpl) get together? like: {include file="$tpl_dir./header.tpl"} {include file="$tpl_dir./product.tpl"} ... ? That's the only place where a space can get added I'm guessing. Edited July 24, 2012 by walter6 (see edit history) Link to comment Share on other sites More sharing options...
Carlsen Posted July 24, 2012 Share Posted July 24, 2012 Have you tried copying the content into a new file and then uploading that? Link to comment Share on other sites More sharing options...
walter6 Posted July 24, 2012 Author Share Posted July 24, 2012 No, but I have 2 sites using the same theme, on one I don't have this issue so now I've copied my product.tpl, header.tpl, error.tpl and breadcrumb.tpl from the other website, and guess what the space is still there! So the problem must be somewhere else, apparently those files have nothing to do with it. Link to comment Share on other sites More sharing options...
Carlsen Posted July 24, 2012 Share Posted July 24, 2012 That is weird, I am pretty certain that it has something to do with the encoding. What about converting localization files in your translation directory? Link to comment Share on other sites More sharing options...
Jevgen Posted November 22, 2012 Share Posted November 22, 2012 (edited) open product.tpl (may be breadcrumb.tpl) with notepad ++ encoding > encode with UTF-8 without BOM, after that convert to UTF-8 witout BOM if need press "save" put back and replace original one. after that open your site main directory > tools > smarty > compile delete all files except index.php Edited November 22, 2012 by Jevgen (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now