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.

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 12-04-2009, 06:31 PM
klubz klubz is offline
Registered User
Pro Plus Member
 
Join Date: Dec 2009
Posts: 6
Default Homepage Main - Below Homepage Top Left / Right

Hi,

Is it possible to swap the "Homepage Main" to appear BELOW the "Homepage Top Left" and Homepage Top Right"....Please could someone advise which file needs to be changed and what the file names are...

I'm not sure if this is scripted into the home.php BUT in anticipation that it is, I have my home.php page here:

Code:
<?php 

get_header(); 

function sp_read_more_from($position) {
    ?>
        <strong><a href="<?php echo get_category_link(get_theme_mod($position)); ?>" rel="bookmark"><?php _e("Read More Posts From", 'studiopress'); echo " ". cat_id_to_name(get_theme_mod($position)); ?> &raquo;</a></strong>
    <?php
}

function sp_post_thumb($post, $position) {
    if( get_post_meta($post->ID, "thumb", true) ): 
?>
    <a href="<?php the_permalink() ?>" rel="bookmark">
        <img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&amp;h=<?php echo get_theme_mod($position.'_thumb_height'); ?>&amp;w=<?php echo get_theme_mod($position.'_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" />
    </a>    
<?php
    else:
        // You might want to show a default image?
    endif; 
}
?>

<div id="content">

    <div id="contentleft">
    
                    
            <div class="hptabber">
               <?php include (ABSPATH . '/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery.php'); ?>
            </div>    
     
        
        <div class="hpfeatured">
        
            <h3><?php echo cat_id_to_name(get_theme_mod('featured_main')); ?></h3>
                        
                <?php $recent = new WP_Query("cat=".get_theme_mod('featured_main')."&showposts=".get_theme_mod('featured_main_num')); while($recent->have_posts()) : $recent->the_post();?>
                <?php sp_post_thumb($post, 'featured_main'); ?>                    
                
                <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
                <?php the_content_limit(315, ""); ?>
                
                <a href="<?php the_permalink() ?>">[<?php _e("Continue reading: ", 'studiopress'); the_title(); ?>]</a>
                
                <hr/>
                
                <?php endwhile; ?>
                
                <?php sp_read_more_from('featured_main'); ?>
                        
        </div>
                        
        <div class="homeleft">
        
            <div class="homeblock">
            
            <h3><?php echo cat_id_to_name(get_theme_mod('featured_top_left')); ?></h3>
                
                <?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left')."&showposts=".get_theme_mod('featured_top_left_num')); while($recent->have_posts()) : $recent->the_post();?>
                <?php sp_post_thumb($post, 'featured_top_left'); ?>                    
                
                <p><strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong></p>
                <?php the_content_limit(80, ""); ?>
                
                <hr/>
                
                <?php endwhile; ?>
                
                <?php sp_read_more_from('featured_top_left'); ?>
                                
            </div>
                                
        </div>
        
        <div class="homeright">
        
            <div class="homeblock">
            
            <h3><?php echo cat_id_to_name(get_theme_mod('featured_top_right')); ?></h3>
                
                <?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_right')."&showposts=".get_theme_mod('featured_top_right_num')); while($recent->have_posts()) : $recent->the_post();?>
                <?php sp_post_thumb($post, 'featured_top_right'); ?>                    
                
                <p><strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong></p>
                <?php the_content_limit(80, ""); ?>
                
                <hr/>
                
                <?php endwhile; ?>
                
                <?php sp_read_more_from('featured_top_right'); ?>
                                
            </div>
                                
        </div>
        
        <div class="clear"></div>
            
    </div>
            
<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>
Many thanks and regards
Carl
 

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
remove homepage right & homepage left danjee General Discussion 2 03-12-2010 08:25 PM
Is it possible to display "homepage main" without "homepage top left and right"? Ryan Maes General Discussion 2 02-03-2010 02:35 AM
Homepage Main carolepyke General Discussion 1 11-21-2009 06:12 PM
main homepage pic Jprood General Discussion 2 11-19-2009 09:11 AM
Add 2nd category to 'homepage left' & 'homepage middle' mitch5 General Discussion 1 11-09-2009 05:51 PM


All times are GMT -5. The time now is 11:25 AM.

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