![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
I have disabled the right click blocker....forgot about that.
|
|
#4
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
This should be in there
PHP Code:
PHP Code:
__________________
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
|
|||
|
|||
|
My blog is an older version of the Education Theme (1.0?) and does not have the genesis framework.
|
|
#10
|
||||
|
||||
|
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
|
|||
|
|||
|
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); ?>&h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&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
|
||||
|
||||
|
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
|
|||
|
|||
|
Thanks. I will try this.
|
| Thread Tools | |
| Display Modes | |
|
|
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us