You need to move “class=”left” and all its contents inside the closing tag of the “casing” div.
At the moment, you’re closing the casing div before the sidebar, and as the casing is a container, it means the sidebar shows after the casing, rather than being inside it.
Thanks Brightinmike, I have tried to complete the above instructions but am struggling still.
The page I am attempting to fix in the editor is the (sidebar.php) and currently look like this:
<div class=”left”>
<?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
<div class=”sidebar”>
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(“Sidebar”) ) : ?>
<div class=”sidebox”>
-
<h3 class=”sidetitl”>Pages</h3>
<?php wp_list_pages(‘title_li=’); ?>
</div>
<?php endif; ?>
</div>
<?php include (TEMPLATEPATH . ‘/sponsors.php’); ?>
</div>
I am at a loss to know here to put the <div class=”left”>. Apologies for being slightly brainless but this is an issue I ouldn’t have figured out in a thousand years had I been left to my own devices.
Thanks for your help
You’re closing the container before you include the sidebar. Therefore you need to remove the closing div tags for the div class “casing” from before the sidebar.php is called, and insert the closing div tag for the “casing” class to after the sidebar.php is called.
Presuming you’re using page.php, you need to look to where it’s calling your sidebar.php. There will be a closing div tag, which is closing the container. Move it to AFTER the sidebar is called. You’ll need to do this on all files that call the sidebar.
Can’t really explain it any simpler then that – so if you still have problems, it sounds like you drastically need to brush up on your front-end coding skills.
Gluck.
Thanks for all your help, it has been a good 9/12 months since I last did anything on WP and your statement that I need to brush up is spot on.
I seem to have the problem resolved now, thanks again