Sidebar on Homepage
-
Just updated to version 1.3.2 and the homepage sidebar vanished, It still shows on all other post and pages. Reading is set to Latest Posts
Thanks
-
Hi mdknight,
If you’ll send me a link to your site, I’ll take a look at it.
Hi Anders,
Here it is http://sinful.subtlesitedesign.com/
Some images may be NSFW
ThanksI have also noticed that search no longer appears even on posts and pages where the sidebar does appear
That is very strange. Could you post the contents of index.php?
<?php get_header(); ?> <div class="wrapper section-inner"> <div class="content left"> <?php if (have_posts()) : ?> <div class="posts"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $total_post_count = wp_count_posts(); $published_post_count = $total_post_count->publish; $total_pages = ceil( $published_post_count / $posts_per_page ); if ( "1" < $paged ) : ?> <div class="page-title"> <h4><?php printf( __('Page %s of %s', 'hemingway'), $paged, $wp_query->max_num_pages ); ?></h4> </div> <div class="clear"></div> <?php endif; ?> <?php while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php get_template_part( 'content', get_post_format() ); ?> </div> <!-- /post --> <?php endwhile; ?> <?php endif; ?> </div> <!-- /posts --> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div class="post-nav archive-nav"> <?php echo get_next_posts_link( __('« Older<span> posts</span>', 'hemingway')); ?> <?php echo get_previous_posts_link( __('Newer<span> posts</span> »', 'hemingway')); ?> <div class="clear"></div> </div> <!-- /post-nav archive-nav --> <?php endif; ?> </div> <!-- /content.left --> <?php get_sidebar(); ?> <div class="clear"></div> </div> <!-- /wrapper --> <?php get_footer(); ?>Here you go 🙂
Hmm, there doesn’t seem to be anything wrong with it. Try deleting Hemingway and reinstall it, and see if that helps.
I have done that, It doesn’t help. I have also done a fresh wp install followed by the theme install. The sidebar shows until I import content. It doesn’t seem to matter what content I import.
Ok.. after doing some code swapping it seems related to the differences in the content.php file if I use the 1.31 version I get a sidebar on the homepage, but it only shows an excerpt, if I use the 1.3.2 version I get a full text, but no sidebar. Making changes in the Reading settings makes no difference in how the homepage displays.
I do believe I have found what is going on.
Some posts (from a variety of sites) contain
‘<div id=”stcpDiv”>
</div>’
(Suffusion is one of the themes that adds this)
embedded in the post, which breaks the front page display. I stripped all of that from the XML import file and that solved the issue. The wordpress default themes accepted with no issue, so you might want to take a look at how that content is handled. Thanks for all of your effort and I will be sure to rate this theme highly
The topic ‘Sidebar on Homepage’ is closed to new replies.
