• I have downloaded index.PHP from the theme which I am using (Journalized Sand) to make changes. So far I was only able to correct 3 – 4 errors as some of the error script shown by validator is missing on that main index page.

    When I click source info on bequiablog.com the page shows all the script, but some script is missing from the downloaded page (index.php). I am trying to fix problems indicated by xvalidator however cant as long as I dont know where I can change that script.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The source you view is munged from (generally) header.php, index.php, sidebar.php, footer.php at minimum. In order to figure out where to change things that are wrong, you need to copy the source output into notepad2 or notepad++ (check google for current addys) where you can set them to show line numbers.

    Then when the validator gives you a line number for an error, you look at the source in notepad2, see where it falls within the munged files (some of it will be obvious as living within sidebar or footer, etc.) Then you look for the offending line in the actual file whichever it is.

    That’s how dynamic sites/files work…. one page display is actually made up of many parts.

    Thread Starter qsch

    (@qsch)

    I tried the exact same thing but some code is missing from the various files. Also there is no file called footer next to index, lefthand righthand header etc.

    “Files” are separate … files, so they’re not “next to” anything.

    By the way, your page expands to the full width of the monitor and requires more (part of the right-hand side gets chopped off, even on my 30″ monitor).

    Thread Starter qsch

    (@qsch)

    Thanks Diane V, do you know how I can change that right hand side being chopped off? Can I reduce the width of the page?

    Back to the other problems: Basically from line 83 in the source code, I cant find any of the code in any of the pages, Index.php, searchform, rightcolumn, leftcolumn, page, header, comments. There is no footer page in that theme folder. After checking several times I cant find any of the remaining errors for bequiablog.com displayed on http://validator.w3.org/.

    I would be grateful if anyone can help me resolve those errors which I can do myself but as mentioned can not see the scripts.

    Line 83 etc.

    <p><center></center>

    is in a post regarding nightlife.

    The other 9 errors currently showing are relating to a google ad, and you’ll need to pull the stuff out that regards border colors, etc. and put in your css, and clean up the ad block you got from google as far as the table stuff. Can’t help you further with that, I don’t do tables for ads.

    I don’t see any errors with the footer – and no, that theme (which I had to download as I’ve never used it) doesn’t use a footer.php file; the footer stuff is this part of index.php and page.php:

    <p class="centerP">
      [powered by <a href="http://wordpress.org/"
     title="Powered by WordPress, state-of-the-art
    semantic personal publishing
    platform"><strong>WordPress</strong></a>.]

    Oh, I dont see that the site stretches out of the screen either.

    Thread Starter qsch

    (@qsch)

    vkaryl, thanks for the great help. Can you please let me know in which page you’ve seen the script of the error regarding a post about nightlife.

    Looks like it’s in the post of February 17, 2007, titled THE BIG LITTLE ISLAND.

    Hope that helps. Good luck, post back if you have other issues/need more help.

    Thread Starter qsch

    (@qsch)

    once again thanks for your help. You all are really helpfull.

    I managed to get that first error out by changing the html of the Big Little Island Page. However, I am trying to find the script to take out the other 9 errors shown in validator: lines 493 – 503, but dont know on which page I can do that as I cant recognize which post it relates to????

    It’s not a post at all, it’s the ad code you’re using which comes from google. You’ll have to do some serious tweaking to fix it, it’s not necessarily a quick fix. That code’s all in tables, and the table stuff for layout is not only bad news, it’s hard to fix so it displays right and validates, while not getting you in hot water with google.

    You might want to start with the google lists for ad programs – see if there’s anyone else with this situation.

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

The topic ‘problems editing index.php as not all script there…’ is closed to new replies.