The div is inside of the wrapper in the code, but on the page it is outside of the wrapper. Is there something going on on the page that is making it come outside of the wrapper.
If what you posted in that pen is the your page's template file, it's a mess.
Clean that up and properly section it into header.php, page.php, and footer.php.
Other than the issues with the structure / function calls, the sidebar is most definitely being called outside of the main wrapper.
EDIT: Taking a closer look at it, you need to move the get_sidebar() into the check for dynamic sidebar support. Where it is now is outside of the sidebar div and doesn't act as a fallback if your registered bar isn't supported / doesn't exist.
PS, the actual file needs completely rearranging (like said above, if this is your template file). I haven't changed any of the arrangement apart from the sidebar call for dynamic_sidebar and they way you've wrapped the elements. Doing that and reading this may resolve your problem.
The pin is not what my pages look like. They are in separate files. I simply put them into one pin for convenience. Honestly, I think it is easy to check for the divs one it is in one file.
The div is inside of the wrapper in the code, but on the page it is outside of the wrapper. Is there something going on on the page that is making it come outside of the wrapper.
The broken page: http://theavocadogirl.com/2013/02/mock-refried-beans/
Already being discussed here
http://css-tricks.com/forums/discussion/22971/getting-divs-to-work-for-sidebar#Item_19
Just because you don't like the answers you are getting is no reason to start a new thread.
I thought it related more to php. Stop commenting on my posts please. There is no rule that says that I cannot post in multiple threads.
I'll comment wherever I wish.
If you people raise multiple threads about the same issue it wastes other viewers time.
However, we've now narrowed this down to a PHP issue (I think) and let the experts in that subject take over.
Can someone show me what I can change to make this page work? I'm not understanding what needs to be changed to get the wanted result.
If what you posted in that pen is the your page's template file, it's a mess.
Clean that up and properly section it into header.php, page.php, and footer.php.
Other than the issues with the structure / function calls, the sidebar is most definitely being called outside of the main wrapper.
EDIT: Taking a closer look at it, you need to move the get_sidebar() into the check for dynamic sidebar support. Where it is now is outside of the sidebar div and doesn't act as a fallback if your registered bar isn't supported / doesn't exist.
Like so:
That should fix it, assuming there isn't a bunch of extra bits in sidebar.php.
Try this.
PS, the actual file needs completely rearranging (like said above, if this is your template file). I haven't changed any of the arrangement apart from the sidebar call for dynamic_sidebar and they way you've wrapped the elements. Doing that and reading this may resolve your problem.
The pin is not what my pages look like. They are in separate files. I simply put them into one pin for convenience. Honestly, I think it is easy to check for the divs one it is in one file.
What is the point of loading the sidebar if you already have it loaded like you do in your example?
http://theavocadogirl.com/2013/02/mock-refried-beans/
If you look at firebug it is now inside of the wrapper but it isn't showing up next to the content.
Finally fixed this . . . The Cannot be placed inside of this <?php endwhile; ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?>
<?php else: ?>
<?php endif; ?> That was the problem.