Title: index.php problem
Last modified: August 18, 2016

---

# index.php problem

 *  [danithew](https://wordpress.org/support/users/danithew/)
 * (@danithew)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/)
 * I’ve been making alterations in my menu format and somehow I managed to change
   something in index.php that is scrambling my site. I’m not exactly sure what 
   I did but to someone who understands index.php better might have a clearer idea.

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [lawtai](https://wordpress.org/support/users/lawtai/)
 * (@lawtai)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/#post-77247)
 * hmm, did you remove a <div> in there somewhere?
 *  [lawtai](https://wordpress.org/support/users/lawtai/)
 * (@lawtai)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/#post-77248)
 * a <div> would affect it because that’s how the index positions everything. if
   you have
    <div id=”menu”> <div id=”stuff”> </div> </div> then the stuff would
   be inside the menu. Take out the menu div, and you screw up how “stuff” relates
   to the rest of your page. You don’ thave a backup do you?
 *  Thread Starter [danithew](https://wordpress.org/support/users/danithew/)
 * (@danithew)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/#post-77250)
 * Lawtai,
    Unfortunately the saved backup I have is of an older version of my index.
   php that has since been tweaked a bit. I should have known better. I think I’ll
   look at that suggestion Beel had of “where to start with” as for some reason 
   I didn’t notice that right away.
 *  Thread Starter [danithew](https://wordpress.org/support/users/danithew/)
 * (@danithew)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/#post-77256)
 * hmmm… I’m not seeing my call for the style switcher… i wonder if that could be
   it. Maybe somehow that was messed up. It’s definitely not showing up now though
   all the links/categories/etc. are there.
 *  Thread Starter [danithew](https://wordpress.org/support/users/danithew/)
 * (@danithew)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/#post-77257)
 * adding that didn’t fix it though… sigh
 *  Thread Starter [danithew](https://wordpress.org/support/users/danithew/)
 * (@danithew)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/#post-77258)
 * I’m going to stop messing with the code for awhile as nothing I have tried has
   fixed anything. Maybe if I take 15 away my mind will refresh a bit and I’ll figure
   out another approach. I’m still hoping it’s just a <div> or </div> code somewhere
   that is missing. But I thought I tracked them all down and verified that they
   were placed as they were in an index.php file that worked. (shrug)
 *  Anonymous
 * [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/#post-77274)
 * Just view the source of your page and go down it line by line and it won’t take
   you long to find numerous mistakes, including the ones I mentioned already. You
   can have
    - ...
 *  but you cannot have
    - ...
 *  and now you have:
    `<div id="menu">`
    -  The Book of Mormon
 *  -  Now that is messed up!
       Your tags start to go wrong at the very top with:**
      <div id=”content”>** <div class=”cent”><last visit code></div> <p id=”last_visit”
      ><script … /script> **</div>** As you can see, besides <last visit code> being
      invalid, you close out your content div with the last /div above.
 *  Thread Starter [danithew](https://wordpress.org/support/users/danithew/)
 * (@danithew)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/#post-77311)
 * Thank you anonymous for your help. It was _that_ last </div>, as you said, that
   really was screwing everything up. Thanks for pointing it out as I had been working
   on code below that point to try and find the problem.
    I’ll be working on trying
   to get this code right for awhile but at least now the site is even semi-readable.
   And this time I’ll make sure to copy over my index.php!
 *  Anonymous
 * [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/#post-77322)
 * The forum says I am logged in as “Beel” but is posting as “Anonymous” – You’ve
   got a lot of dinky validation problems but hit the valid xhtml link a few times
   and you can winnow it down.
 *  Thread Starter [danithew](https://wordpress.org/support/users/danithew/)
 * (@danithew)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/#post-77323)
 * Beel, I was 99% sure that was you. I was just making sure. Thank you for your
   help.
    I’m glad that at least the sidebar is now discernable from the posts. 
   🙂 I’m having a lot of trouble though just getting the sidebar to look halfway
   decent. The honest truth is I’m still figuring out the meaning of rudimentary
   codes such as < ul > < li > < div > etc. I’m also completely new at using the
   valid xhtml link and even though it’s very helpful at pointing out the errors,
   I admit I’ll be figuring out for a bit how to address those errors properly.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘index.php problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [danithew](https://wordpress.org/support/users/danithew/)
 * Last activity: [21 years, 10 months ago](https://wordpress.org/support/topic/indexphp-problem/#post-77323)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
