bad-and-ugly
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Widget areas on 3 column themeWell, it’s really a shame I never found out what was wrong with it. I “fixed” the issue of index.php not getting the footer, but even though I didn’t really change anything… I did the whole step by step again and couldn’t figure out what was different.
As for the sidebar, I just had to use a different code from a different person. The dynamic_sidebar thing from Automattic.
Forum: Themes and Templates
In reply to: Widget areas on 3 column themeWell, I hate to get my post out of the “no-replies” list, but I think I should give a small update…
I see now that my sidebar and footer are not in the output. Everything seems perfect with the index.php (“getting” the sidebar and footer) and the footer.php seems perfect too (with the wp_footer thing). I don’t know about sidebar.php, but it’s probably the same error for both.
I had this problem and I looked A LOT on the internet, and everywhere people were saying that you must not have any spaces before the opening <?php tag and the closing ?> at the end of the file. That was not exactly my problem though…
So somebody in these forums was saying exactly that, about spaces in the beginning and end of the file, and he also said “if you use Windows, it will include ‘hidden characters’ in the beginning of an UTF-8 file”. It’s called BOM, and I had no idea what that meant.
Anyway, if you delete all spaces before <?php and after ?> and still have that proble, you probably have that BOM that Windows puts on UTF-8 encoded files. So download Notepad++ and change the encoding there to “UTF-8 without BOM” and that should solve it.