WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar keeps disappearing (9 posts)

  1. slope12
    Member
    Posted 4 years ago #

    I've been using the default theme on my blog dirtdiggersdigest.org for quite a while. Recently I found that my entire sidebar had disappeared for no apparent reason.

    While trying to resolve this I briefly changed themes and then found that by going back to the default theme and automatically re-installing 2.8.4 the sidebar reappeared. But after half a day the sidebar disappeared again.

    I again re-installed 2.8.4 and then deactivated all the widgets and reactivated them. The next day the sidebar disappeared again. Again I was able to make it reappear by re-installing 2.8.4, but the problem continues.

    I've noticed other posts about disappearing sidebars but none that offer a solution for my situation. Any advice? Thanks.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

  3. slope12
    Member
    Posted 4 years ago #

    Sorry, forgot to hyperlink it:
    http://dirtdiggersdigest.org/

  4. Peter Boosten
    Member
    Posted 4 years ago #

    Some of your php files don't have a call to the sidebar, like for instance single.php: if you watch an article, the the sidebar disappears (it's still there, but you don't make a call to it).

    Peter

  5. slope12
    Member
    Posted 4 years ago #

    I've never had the sidebar on my single posts. The problem I have is that it has been disappearing from my index page even though there is a get_sidebar command in the Main Index Template.

    Could the problem be where it is located in that file? Right now is it at the end after </div>:

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    Its position in the source code is fine. Did you try deactivating all plugins?

  7. slope12
    Member
    Posted 4 years ago #

    I had earlier updated a plugin for which there was an update.

    I've now deactivated all of them. Are you suggesting I leave them deactivated or re-activate them now?

  8. esmi
    Forum Moderator
    Posted 4 years ago #

    Try leaving them deactivated for a while and test the site out thoroughly. If you don't get any "disappearing sidebar" incidents, then it would suggest that one of your plugins is responsible. Activate them one-by-one and, again, test the site out thoroughly after each single re-activation. Hopefully, you'll eventually find the problematic plugin.

  9. Mr. Vibe
    Member
    Posted 4 years ago #

    LOL
    You are using the default theme, it was built to act like this.
    Edit single.php from your wp-content/themes/default folder and edit the file called single.php (with notepad or whatever text editor). Now delete all the content from there and copy this code instead:

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    get_header(); ?>
    
    	<div id="content" class="narrowcolumn" role="main">
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    			<h2><?php the_title(); ?></h2>
    
    			<div class="entry">
    				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    
    				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    				<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
    
    				<p class="postmetadata alt">
    					<small>
    						This entry was posted
    						<?php /* This is commented, because it requires a little adjusting sometimes.
    							You'll need to download this plugin, and follow the instructions:
    							http://binarybonsai.com/wordpress/time-since/ */
    							/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
    						on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
    						and is filed under <?php the_category(', ') ?>.
    						You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
    
    						<?php if ( comments_open() && pings_open() ) {
    							// Both Comments and Pings are open ?>
    							You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
    
    						<?php } elseif ( !comments_open() && pings_open() ) {
    							// Only Pings are Open ?>
    							Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
    
    						<?php } elseif ( comments_open() && !pings_open() ) {
    							// Comments are open, Pings are not ?>
    							You can skip to the end and leave a response. Pinging is currently not allowed.
    
    						<?php } elseif ( !comments_open() && !pings_open() ) {
    							// Neither Comments, nor Pings are open ?>
    							Both comments and pings are currently closed.
    
    						<?php } edit_post_link('Edit this entry','','.'); ?>
    
    					</small>
    				</p>
    
    			</div>
    		</div>
    
    	<?php comments_template(); ?>
    
    	<?php endwhile; else: ?>
    
    		<p>Sorry, no posts matched your criteria.</p>
    
    <?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags