Title: HTML Help &#8211; Deleted Code in INDEX File
Last modified: August 19, 2016

---

# HTML Help – Deleted Code in INDEX File

 *  [simplisticshenanigans](https://wordpress.org/support/users/simplisticshenanigans/)
 * (@simplisticshenanigans)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/html-help-deleted-code-in-index-file/)
 * Hello All!
    It seems while trying to add NEXT/BACK button to my index file I 
   deleted something I shouldn’t have an now my entire right sidebar is gone along
   with my footer.
 * Site: [http://www.simplisticshenanigans.com](http://www.simplisticshenanigans.com)
   
   Main Index Code:
 *     ```
       <?php get_header(); global $blog_postcount, $blogcat; $first_comic = get_first_comic(); ?>
   
       <?php $wp_query->in_the_loop = true; $comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.$comiccat);
       while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post(); ?>
          <div id="comic">
             <img src="<?php comic_display(); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
          </div>
       <?php endwhile; ?>
   
       <div id="page">
   
          <?php include(TEMPLATEPATH . '/sidebar-left.php'); ?>
   
          <div id="column">
   
             <?php while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post(); ?>
                <div class="post-frontpage">
                   <div class="comicdate">
                      <div class="nav">
                         <a href="<?php echo $first_comic; ?>"><span style="letter-spacing:-4px;padding-right:4px;">I◄◄</span> First</a> | <?php global $wp_query; $wp_query->is_single = true; previous_post_link('%link', '◄ Previous', TRUE); $wp_query->is_single = false; ?>
                      </div>
                      <?php the_time('l — F jS, Y') ?>
                   </div>
                   <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                   <div class="entry">
                      <?php the_content('Read the rest of this entry &raquo;'); ?>
                   </div>
                   <div class="postmeta">
                      <?php the_tags('Tags: ', ', ', ' | '); edit_post_link('Edit', '', ' | ');
                      if ('open' == $post->comment_status) { comments_popup_link('<span class="postmeta-comments">Comment </span><span class="balloon">)</span>', '<span class="postmeta-comments">1 Comment </span><span class="balloon">)</span>', '<span class="postmeta-comments">% Comments </span><span class="balloon">^</span>'); } ?>
                   </div>
                </div>
             <?php endwhile; ?>
   
             <div id="blogheader">
             </div>
   
             <?php $temp = $wp_query; $wp_query= null;   $wp_query = new WP_Query(); $wp_query->query('showposts='.$blog_postcount.'&cat='.$blogcat.'&paged='.$paged);
             while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
                <div class="post" id="post-<?php the_ID(); ?>">
                   <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
                   <div class="postdate"><?php the_time('F jS, Y') ?></div>
                   <div class="entry"><?php the_content('Read the rest of this entry &raquo;'); ?></div>
                   <div class="postmeta">
                      <?php the_tags('Tags: ', ', ', ' | '); edit_post_link('Edit', '', ' | ');
                      if ('open' == $post->comment_status) { comments_popup_link('<span class="postmeta-comments">Comment </span><span class="balloon">)</span>', '<span class="postmeta-comments">1 Comment </span><span class="balloon">)</span>', '<span class="postmeta-comments">% Comments </span><span class="balloon">^</span>'); } ?>
                   </div>
                </div>
             <?php endwhile; ?>
             <div class="pagenav">
                <div class="pagenav-right"><?php previous_posts_link('Newer Entries ▲') ?></div>
                <div class="pagenav-left"><?php next_posts_link('▼ Previous Entries') ?></div>
                <div class="clear"></div>
             </div>
             <?php if (is_paged()) { ?>
                <style>
                   #comic{display:none;}
                   .post-frontpage{display:none;}
                </style>
             <?php } ?>
             <?php $wp_query = null; $wp_query = $temp; ?>
   
          </div>
   
       </div>
       ```
   
 * All I want to do is return my footer (which was the default footer), get my right
   sidebar back in action, and add NEXT/PREVIOUS button to the bottom of my pages.
 * Can anyone help with this?
 * I am currently using the ComicPress 3C theme.

Viewing 1 replies (of 1 total)

 *  [@mercime](https://wordpress.org/support/users/mercime/)
 * (@mercime)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/html-help-deleted-code-in-index-file/#post-869094)
 * Re-upload the ComicPress 3C theme, it won’t affect the posts you already have
   online. If you’d already made some customizations, backup those files and re-
   customize the theme again.

Viewing 1 replies (of 1 total)

The topic ‘HTML Help – Deleted Code in INDEX File’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [@mercime](https://wordpress.org/support/users/mercime/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/html-help-deleted-code-in-index-file/#post-869094)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
