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
  #1  
Old 10-27-2012, 03:40 PM
tpaulwhite tpaulwhite is offline
Registered User
Genesis Member
 
Join Date: Jul 2009
Posts: 28
Default Add Homepage Bottom Pre-Genesis

Hi - I would like to add 2 homepage featured bottom sections to my website. Currently there is just one
www.travelfreefaster.com

I have seen some replies that relate to the genesis version of lifestyle, but I am running a pre-genesis version.

Can you please advise how I can add 2 additional homepage featured bottom sections?

I really appreciate the help!
  #2  
Old 10-27-2012, 07:24 PM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

Take a look at home.php to review how the original sections are coded and copy those elements you want to duplicate. You'll need to edit the post queries and rename the new divs and also add new style rules to the style sheet for the new divs.
__________________
John "Nicolas Flamel" Wright | SoZo's design | John Wright Photography

New to Genesis? Check out Genesis Explained.
"We are the music makers, and we are the dreamers of dreams..." - Arthur O'Shaughnessy

"Some days even my lucky rocket ship underpants don't help" - Calvin
StudioPress on Facebook
  #3  
Old 10-27-2012, 11:51 PM
tpaulwhite tpaulwhite is offline
Registered User
Genesis Member
 
Join Date: Jul 2009
Posts: 28
Default

Thank you - do I just copy the homppagebottom section and paste it below in the home.php? Do I need to change the name to something like homepagebottom1?

Below is the code from home.php for homepagebottom - do i just copy this (below)?

Do I need to change any other files to make sure it shows up in the Appearence - Lifestyle Theme Options?

I appreciate it!



<div id="homepagebottom">

<div class="hpbottom">
<h3><?php echo __("The Latest Posts from . . . . the Travel Free Faster ", 'studiopress')." ".$cat->name; ?><?php echo cat_id_to_name(get_theme_mod('featured_bottom')); ?> </h3>

<?php $recent = new WP_Query("cat=".get_theme_mod('featured_bottom')." &showposts=".get_theme_mod('featured_bottom_num')) ; while($recent->have_posts()) : $recent->the_post();?>
<?php 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('featured_bottom_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_bottom_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>

<strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
<?php the_excerpt(__("[Read more...]", 'studiopress')); ?>

<hr/>

<?php endwhile; ?>

<?php $cat = get_category(get_theme_mod('featured_bottom')); ?>
<strong><a href="<?php echo get_category_link(get_theme_mod('featured_bottom') ); ?>" rel="bookmark"><?php echo __("Read More Great Posts from the TravelFreeFaster ", 'studiopress')." ".$cat->name; ?></a></strong>

</div>

</div>

</div>
  #4  
Old 10-28-2012, 09:51 AM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

Yes, you can copy that section. You will need to change all the IDs and option names. If you don't want to mess with the options you can replace those with a standard post query parameters.
__________________
John "Nicolas Flamel" Wright | SoZo's design | John Wright Photography

New to Genesis? Check out Genesis Explained.
"We are the music makers, and we are the dreamers of dreams..." - Arthur O'Shaughnessy

"Some days even my lucky rocket ship underpants don't help" - Calvin
StudioPress on Facebook
 

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
Swap position of Homepage Middle widget with Homepage Bottom Widgets boblipton General Discussion 5 04-09-2010 11:59 AM
Homepage featured bottom box kimarie General Discussion 3 03-08-2010 03:21 PM


All times are GMT -5. The time now is 01:47 PM.

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