I am using the Mandigo theme, and I'm trying to set up various custom templates for my Pages.
I've worked from the original Page template, and have tried to strip it to its bare minimum before customizing it the way I want to. The idea is to be able to remove the sidebar, and add lots of random stuff, to certain Pages.
It all works fine, except for one very frustrating problem:
When using my custom templates, the entire "content" section is ~10pixels or so to the right of where it is using the Default Template - in Firefox, but not in IE.
You can see this in action by pointing Firefox at http://www.sunil.org.uk - Home and Blog are using the default templates. From one of these pages, click on "Photos" - you will see the page "jump" to the right and stay there as the customised template loads. Similarly, clicking on "Home" or "Blog" makes it return to normal.
If you repeat the test in IE7, this does not happen.
I've tried tracking down the problem by working my way through the original Page.php (and, by extension, Sidebar.php) and adding bits of it to my customised template, until it stopped "breaking".
The thing which finally made it stop doing this was from Sidebar.php:
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar 1')) : ?>
When the "if" loop was left in my customised template (even when it was empty), the problem no longer occured.
However, that code also includes the standard "Widgetised" dynamic sidebar - which is amongst the things I do not wish to include on my customised template.
1) I have a sneaking suspicion that this is a stylesheet problem - the problem doesn't occur in IE, but does in Firefox, and it's to do with layout.
2) I have no idea why "including" the default sidebar using the code above stops the problem, but it isn't a "valid" solution in this case (as I don't want it showing up).
3) I have tried to get my head around the dynamic sidebar widgets, but as I'm already new to WordPress, I'm struggling to understand the interplay between the different elements of it enough to figure out what's causing this behaviour.
Could anyone explain what's happening, and how to avoid it or work around it?