Have you tried:
– deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
– switching to the Twenty Eleven theme to rule out any theme-specific problems.
– I gave deactivating all of the plugins a try, although I didn’t think that was the problem, it didn’t work, the page still kept scrolling to the top of the page after the reply link was clicked upon.
– I don’t think switching to another theme is possible. Since my site started out with just a plain, default wordpress site. And I’ve tweaked and changed the codes since then to give my site its own “look”.
I suspect that it may have something to do with the codes in the comments.php since there’s been some changes in it. Would it be possible that I look at the codes in a “template” comments.php file somewhere? This way I could do some comparison and look at the codes in the two files and so forth?
I’d appreciate it. Thanks in advance!
And I’ve tweaked and changed the codes since then to give my site its own “look”.
Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes. Upload a fresh copy of the theme. Once your child theme is active, we should be able to help with the customisation.
I’m afraid I may have made way too many changes to take that route.
To put it in perspective, take a look:
http://www.dansbanners.com/about/
I suspect that the dilemma may simply have to do with the codes, possibly with the way the <?php if>, <?php else : ?> and <?php endif; ?> are structured? If I could post the codes in here for a 2nd look?
I’d appreciate it. Thanks in advance!
There are some html errors, http://validator.w3.org/check?verbose=1&uri=http%3a%2f%2fwww.dansbanners.com%2fabout%2f that seem to reference the reply code, like name and email. Scroll down towards the bottom of the validator.
Ok, that helped. Thanks! I narrowed it down to just 6 errors. They are the following:
<– start of error messages –>
1)there is no attribute “property”
<meta property=”og:title” content=”About Dansbanners”/>
2) there is no attribute “aria-required”
aria-required=’true’ /></p>
3) document type does not allow element “li” here; missing one of “ul”, “ol”, “menu”, “dir” start-tag
…ent-posts-2″ class=”widget widget_recent_entries”> <h2>Recent Posts</h2>
<– end of error messages –>
There are also several more errors like #3 above. But I figured that if I solve #3, I’ll probably also solve #4, #5 and #6. Where within the codes can I fix this one? I couldn’t find it?
As for the “aria-required=’true'”, is it necessary? Can I just remove it?
I’m also wondering is it necessary to have “<?php if ($req) echo “*”; ?>” next to the form label?
Thanks again!
I think a possible solution would be to just replace my current comments.php file with the comments.php from the default theme. And then build on from there.
However, I’d like to make sure if the following is the right one?:
http://wordpress.org/extend/themes/default
Thanks!