Viewing 8 replies - 1 through 8 (of 8 total)
  • An unbroken link to the page might help…

    Thread Starter Stefan

    (@stefan83)

    Sorry here you go

    The testimonials are currently being added after .colRight (in other words – after the right sidebar rather than inside it).

    Thread Starter Stefan

    (@stefan83)

    Thanks for your reply esmi. The testimonials appear to be inside the .colRight in the sidebar.php file. Am I wrong?

    <!-- begin colRight -->
    		<div id="colRight">
    		<!-- Search box -->
    		<div id="searchBox">
    			<h2>Search the site</h2>
    			<form id="searchform" action="" method="get">
    				<input id="s" type="text" name="s" value=""/>
    				<input id="searchsubmit" type="submit" value="SEARCH"/>
    			</form>
    		</div>
    
    	<?php
    	/* Widgetized sidebar */
    	if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar') ) : ?>
    
    <?php endif; ?>
    
    	<!-- Random Testimonial -->
    			<h2 class="testimonials">Random Testimonial</h2>
    			<div class="boxRight testimonialsList">
    				<ul>
    
    		<?php
    			$testimonial = new WP_Query($query_string.'&cat='.get_option('wise_testimonials_id').'&showposts=1&orderby=rand');
    			if ($testimonial -> have_posts()) : while ($testimonial -> have_posts()) : $testimonial -> the_post();
    		?>
    					<li><span>~ <?php the_title(); ?></span>
    						<p><img src="<?php if ( function_exists('p75GetThumbnail') )echo p75GetThumbnail($post->ID); ?>" alt="<?php the_title(); ?>" />"<?php content('1000'); ?>"</p>
    					</li>
    			<?php endwhile;
    				  endif; ?>
    					<li><a href="<?php echo get_category_link(get_option('wise_testimonials_id') )?>"><strong>Read more testimonials &raquo;</strong></a></li>
    
    				</ul>
    			</div>
    		<!-- end random testimonial -->
    		<!-- Twitter box -->
    		<h2 class="twitter">What's the little bird saying?</h2>
    			<div class="boxRight twitterList">
    				 <!-- <li><p># <a href="#">@conorpegypt</a> why not just access it from Rockwell's theme documentation? <a href="#">https://bit.ly/6owa235</a><br /> <span>about 4 hours ago</span></p></li> -->
    				 <?php aktt_sidebar_tweets(); ?>
    				<!-- <li><span><?php aktt_latest_tweet(); ?></span></li>
    				  <li><a href="<?php echo get_category_link(get_option('wise_twitter_link') )?>"><strong><a href="<?php echo get_option('wise_twitter_link') ?>">Follow us &raquo;</a></strong></a></li> -->
    			</div>
    		<!-- end twitter box -->
    		</div>
    		<!-- end colRight -->

    If you look at the page source, they’re clearly outside the sidebar. You might be hitting problems with that secondary Loop. I wonder if get_posts might be less of a problem? Or ensuring that you use wp_reset_query() between the main Loop and this secondary one?

    Thread Starter Stefan

    (@stefan83)

    Ok thanks esmi. I removed the widget code and the problem was fixed. So what could be wrong with this ?

    <?php
    	/* Widgetized sidebar */
    	if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar') ) : ?>
    
    <?php endif; ?>
    Thread Starter Stefan

    (@stefan83)

    Nearly there… but now the widget is jumping to the right of the sidebar. The widget code above seems to be generating an extra </div> at the end but I have no clue why! any ideas?

    Thread Starter Stefan

    (@stefan83)

    Ok I’ve found a solution, not ideal and a bit of a hack but I just opened a <div> after the table

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Broken Page! Can anyone help?’ is closed to new replies.