My website is [url]www.ironwhisk.com[/url]. The right sidebar looks normal until you use the search bar on the right hand side. If you search for something that doesn’t exist (e.g. “asdfasg”) then everything is alright. If results do exist (e.g. “chocolate”), the right sidebar moves.
@simplypixieMar 14.2013 — #After search you have a div called sidebar-secondary which appears to be inside your content div when it should be outside and looking at the source code I would say it is because you are not closing some divs above (specifically the divs for the posts)
@simplypixieMar 14.2013 — #Have a look in your loop template as what is being displayed is not in this code as it is happening when actual results are found and the layout then is determined by the loop template.
@IlanauthorMar 14.2013 — #There's not even a mention of sidebar in here though.
[code=php]<?php /* If there are no posts to display, such as an empty archive page */ ?> <?php if ( ! have_posts() ) : ?> <h1><?php _e( 'Not Found', 'ari' ); ?></h1> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'ari' ); ?></p>
<?php endif; ?> <?php /* Start the Loop. */ ?> <?php while ( have_posts() ) : the_post(); ?>
@simplypixieMar 14.2013 — #As I said before, it is nothing to do with the sidebar, it is to do with the fact that one or more divs before the sidebar have not been closed and looking at your code, it is this div [CODE]<div id="post-<?php the_ID(); ?>"[/CODE]
It looks like it should be closed where you have the 2 br tags
@simplypixieMar 15.2013 — #Looking again, I said to put it in the wrong place. Try closing the div just before the endwhile.
If you look at your source code on the live page you will see that the div is not being closed and will hopefully help you work out where it needs closing in your loop. Sometimes just a bit of trial and error works and this is definitely what is breaking your layout.
This is a section of your source code where you should be able to see that you have 2 divs being opened (the post div and the forlinks div) and only one being closed: [CODE]<div id="post-2463" class="post-2463 post type-post status-publish format-standard category-breakfast category-cakes category-desserts tag-breakfast-2 tag-cake tag-cinnamon tag-coffee tag-cream-cheese tag-pecans">
Monday, February 25, 2013 <a href="http://www.ironwhisk.com/2013/02/cinnamon-swirl-coffee-cake/" title="Permalink to Cinnamon Swirl Coffee Cake" rel="bookmark"><h2>Cinnamon Swirl Coffee Cake</h2></a> Written by Ilan // <a href="http://www.ironwhisk.com/2013/02/cinnamon-swirl-coffee-cake/#comments" title="Comment on Cinnamon Swirl Coffee Cake">9 comments</a><br> <br>
<div id="forlinks"> <p>Everyone should have a quick, simple recipe that can impress a crowd. You don’t always have enough time to make a bamboo cake, but that doesn’t mean you have to settle for mediocrity. You shouldn’t have to settle at all, … <a onclick="javascript:pageTracker._trackPageview('/outgoing/www.ironwhisk.com/2013/02/cinnamon-swirl-coffee-cake/');" href="http://www.ironwhisk.com/2013/02/cinnamon-swirl-coffee-cake/">Read more <span class="meta-nav">>></span></a></p> <p class="meta"><span><a href="http://www.ironwhisk.com/2013/02/cinnamon-swirl-coffee-cake/">