• My blog is https://eyesapart.com, just did change-over from Blogger.

    All works well on main page and category pages. But when I pull up individual posts, the sidebar goes to the bottom.

    Before I added the “Pluck” stuff, XHTML validated perfectly on main page. But on pages where sidebar drops down, XHTML validator gives “end tag for div ommitted” error. (Did that before I added the Pluck thing also.)

    Apparently this refers to the final end tag div for the site. How can it be off on some pages and not on others? How to fix?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Because different pages use different templates. Look in single.php to look for the errant issue.

    Thread Starter Nurice

    (@nurice)

    I don’t have a single.php. I’m using the Oasis theme and it has a header.php, footer.php, index.php, sidebar.php, and style.css. There’s also a comments-popup.php and 3 javascript files, but I took the links manager one out of the head portion of the index.php. Other one is a sharedfunctions.js and a cookies.js.

    The links manager js just allowed readers to show/hide links but I wanted them to always show. I’m not sure what the other two js files are for.

    Thanks for your suggestion, wish I had that single.php file!

    Thread Starter Nurice

    (@nurice)

    Hey, I did it! Your tip helped! I decided there had to be something different on individual pages and only thing I could figure was the comment form. I have comments closed for now.

    Since HTML didn’t validate because of end div, I put a end div at bottom of code. Will try to show, haven’t used this backtick thing before, maybe I can get it to work:
    <?php else : // Comments are closed ?>
    <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p></div>
    <?php endif; ?>

    This is the very last line of the comment.php and I added the div. Thanks a bunch!

    Lois

    Thread Starter Nurice

    (@nurice)

    After all that I decided to open the comments. Have been uncertain about that due to vision problems an not sure if I can keep up, but know folks will like the interaction. So am going to give it a try.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘end tag for “div” omitted’ is closed to new replies.