WordPress.org

Ready to get started?Download WordPress

Forums

Clicking on the Comment's Reply Link (9 posts)

  1. dansbanners
    Member
    Posted 2 years ago #

    Hi,

    For some reason, clicking on the comments' reply link is not scrolling down to the reply form at the bottom of the page in my site. Instead, it's scrolling upwards to the top of the page.

    I know it has something to do with the "?replytocom=35#respond" (i.e. 35 is just an example of a comment number) at the end of the reply link.

    Anyone have any ideas or suggestions on what could be causing this dilemma? What files should I look at within wordpress other than commnets.php? And what should I look for within the codes, etc?

    I'd appreciate it. Thanks in advance!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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.

  3. dansbanners
    Member
    Posted 2 years ago #

    - 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!

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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.

  5. dansbanners
    Member
    Posted 2 years ago #

    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!

  6. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    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.

  7. dansbanners
    Member
    Posted 2 years ago #

    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!

  8. dansbanners
    Member
    Posted 2 years ago #

    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!

  9. dansbanners
    Member
    Posted 2 years ago #

    replace my current comments.php file with the comments.php from the default theme.

    That did the trick!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.