StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have -- and this forum will be removed on July 1st, 2013.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-30-2009, 01:27 PM
kleeyoung kleeyoung is offline
Registered User
Genesis Member
 
Join Date: Mar 2009
Posts: 51
Default Home Page Melt Down

I am having a little problem with the featured content boxes on the home page since I changed them around myself.
It looks like when the title is too long in one post, it make the whole thing go crazy. See image: "Reviews" should be directly under "Media Buzz" but gets moved out of aliment because "Sony, Plastic Logic..." is a a longer, 2-line title, compared to "Military Parade..." which is 1-line.

Is there a fix for this? Thanks!!!

Code:
<?php get_header(); ?>

<div id="content">

	<div id="homepage">
    
    	<?php /*Check for the 'gallery_styles' function. if it's there, then include it. If not, do nothing*/ ?>
		<?php if (function_exists('gallery_styles')) : ?>
	

        <div id="homepagetop">

		
            <div class="featuredtop">
            
				<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
                
			</div>
            
		</div>
        
		<?php endif; ?>
				<div class="hpbottom">
			<?php $feature_cat_3 = get_option('lifestyle_feature_cat_3'); $feature_cat_3_num = get_option('lifestyle_feature_cat_3_num'); if(!$feature_cat_3) $feature_cat_3 = 1; //setting a default ?>
			<h3><?php echo cat_id_to_name($feature_cat_3); ?></h3>
	
				
				
				<?php $recent = new WP_Query("cat=".$feature_cat_3."&showposts=".$feature_cat_3_num); while($recent->have_posts()) : $recent->the_post();?>
				<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
				    [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
				<?php else: ?>
				<?php endif; ?>				
				<?php the_title(); ?>
				<?php the_content_limit(350, "[Read more of this review]"); ?>
					
				<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
					
				<?php endwhile; ?>
						
				Read More Posts From This Category
			
			</div>	
		<div id="homepageleft">
				
			<div class="hpfeatured">
			<?php $feature_cat_1 = get_option('lifestyle_feature_cat_1'); $feature_cat_1_num = get_option('lifestyle_feature_cat_1_num'); if(!$feature_cat_1) $feature_cat_1 = 1; //setting a default ?>
			<h3><?php echo cat_id_to_name($feature_cat_1); ?></h3>
			
				
                
				<?php $recent = new WP_Query("cat=".$feature_cat_1."&showposts=".$feature_cat_1_num); while($recent->have_posts()) : $recent->the_post();?>
				<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
				    [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
				<?php else: ?>
				<?php endif; ?>				
				<?php the_title(); ?>
				<?php the_content_limit(80, ""); ?>
				
				<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
				
				<?php endwhile; ?>
				
				Read More Posts From This Category
				
			</div>			
				
		</div>
		
		<div id="homepageright">
		
			<div class="hpfeatured">
			<?php $feature_cat_2 = get_option('lifestyle_feature_cat_2'); $feature_cat_2_num = get_option('lifestyle_feature_cat_2_num'); if(!$feature_cat_2) $feature_cat_2 = 1; //setting a default ?>
			<h3><?php echo cat_id_to_name($feature_cat_2); ?></h3>
			
				
			
				<?php $recent = new WP_Query("cat=".$feature_cat_2."&showposts=".$feature_cat_2_num); while($recent->have_posts()) : $recent->the_post();?>
				<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
				    [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
				<?php else: ?>
				<?php endif; ?>				
				<?php the_title(); ?>				
				<?php the_content_limit(80, ""); ?>
								
				<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
				
				<?php endwhile; ?>
								
				Read More Posts From This Category
				
			</div>		
			
		</div>
		

<div id="homepageleft2">
				
			

<div class="hpfeatured">
<h3>REVIEWS</h3>



<?php $recent = new WP_Query("cat=5&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
[img]<?php bloginfo('template_url'); ?>/images/thumbnail.jpg[/img]" />
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(80, ""); ?>

<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>

<?php endwhile; ?>



Read More Posts From This Category

</div></div>
		
		<div id="homepageright2">



<div class="hpfeatured">
<h3>TOOLS OF THE TRADE</h3>



<?php $recent = new WP_Query("cat=6&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
[img]<?php bloginfo('template_url'); ?>/images/thumbnail.jpg[/img]" />
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(80, ""); ?>

<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>

<?php endwhile; ?>



Read More Posts From This Category

</div></div> 

				
		
	</div>
	
<?php include(TEMPLATEPATH."/sidebar.php");?>
		
</div>



<?php get_footer(); ?>
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
home.php replaced by Category Page on Home Page? scrivers General Discussion 4 03-01-2009 09:38 PM


All times are GMT -5. The time now is 05:58 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.