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
  #1  
Old 11-12-2012, 07:08 PM
mountain mountain is offline
Registered User
Genesis Member
 
Join Date: Dec 2009
Posts: 30
Default Content area extends beyond footer

I recently moved the home sidebar and content area on the home page of my blog. I used the absolute code to position the content area in the centre of the page (which is exactly where I want it positioned) but this has caused the content area on the front page to extend beyond the footer. Can anyone give me some suggestions as to how to fix this? Any help is greatly appreciated! Thank you.

www.siouxmountain.com
  #2  
Old 11-12-2012, 07:10 PM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

You'll need to remove your right click blocker for us to examine what is going on.
__________________
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 11-12-2012, 07:21 PM
mountain mountain is offline
Registered User
Genesis Member
 
Join Date: Dec 2009
Posts: 30
Default

I have disabled the right click blocker....forgot about that.
  #4  
Old 11-12-2012, 07:43 PM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

Remove the positioning and edit the force layout function in functions.php to the layout you want, sidebar-content-sidebar
__________________
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
  #5  
Old 11-12-2012, 08:15 PM
mountain mountain is offline
Registered User
Genesis Member
 
Join Date: Dec 2009
Posts: 30
Default

I am guessing about the code I would add to the functions.php file and hoping you can help further with any editing of this code.

// Force Sidebar Home-Content-Sidebar Layout
add_filter( 'Sidebar_home', 'homepage', 'Sidebar');

I am also wondering if it matters where I add this statement in the functions.php file and if there are other changes I need to make.

Thanks!
  #6  
Old 11-12-2012, 08:17 PM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

You don't need to add any code. The function is already in functions.php and labeled. You just need to edit the layout option.
__________________
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
  #7  
Old 11-12-2012, 08:48 PM
mountain mountain is offline
Registered User
Genesis Member
 
Join Date: Dec 2009
Posts: 30
Default

I don't see any force layout function (//Force Sidebar, etc.) in 'functions.php'. I only want to change the layout of the home page and am wondering if I need to make changes the home.php file. I can copy and paste the home.php file into a message but am not sure if this is ok :)
  #8  
Old 11-13-2012, 09:15 AM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

This should be in there
PHP Code:
// Force layout on homepage
add_filter('genesis_pre_get_option_site_layout''education_home_layout');
function 
education_home_layout($opt) {
    if ( 
is_home() )
    
$opt 'content-sidebar-sidebar';
    return 
$opt;

You need to change it to
PHP Code:
// Force layout on homepage
add_filter('genesis_pre_get_option_site_layout''education_home_layout');
function 
education_home_layout($opt) {
    if ( 
is_home() )
    
$opt 'sidebar-content-sidebar';
    return 
$opt;

__________________
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
  #9  
Old 11-13-2012, 01:31 PM
mountain mountain is offline
Registered User
Genesis Member
 
Join Date: Dec 2009
Posts: 30
Default

My blog is an older version of the Education Theme (1.0?) and does not have the genesis framework.
  #10  
Old 11-13-2012, 02:36 PM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

I don't have access to the older theme. You'd need to edit home.php though.
__________________
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
  #11  
Old 11-13-2012, 04:51 PM
mountain mountain is offline
Registered User
Genesis Member
 
Join Date: Dec 2009
Posts: 30
Default

This is the home.php file. I want the home page ordered as sidebar-home -- homepage -- sidebar. I was thinking about moving the code (highlighted in red at bottom of file to the move here ?? position).

If I am way off here, I will have to spend some time brushing up on php. Thanks.



<?php get_header(); ?>

<div id="content">

move here ???


<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="homepagenews">

<h3><?php $featcat = cat_id_to_name(get_theme_mod('featured_top_left')) ; echo $featcat; ?></h3>

<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left') ."&showposts=".get_theme_mod('featured_top_left_nu m')); 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_top_left_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>

<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php the_content_limit(175, ""); ?>
<a rel="nofollow" href="<?php the_permalink() ?>"><?php _e("Read more of this article", 'studiopress'); ?></a>

<hr/>

<?php endwhile; ?>

<p class="textright"><b><a href="<?php echo get_category_link(get_theme_mod('featured_top_left ')); ?>" rel="bookmark"><?php _e("Read More Posts in", 'studiopress'); ?> <?php echo $featcat; ?></a></b></p>

</div>

</div>

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

<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>
  #12  
Old 11-13-2012, 05:54 PM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default

Yes, that should work. probably need to edit the styles being applied to it as well.
__________________
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
  #13  
Old 11-13-2012, 08:45 PM
mountain mountain is offline
Registered User
Genesis Member
 
Join Date: Dec 2009
Posts: 30
Default

Thanks. I will try this.
 

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


All times are GMT -5. The time now is 02:40 AM.

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