• Hi everyone

    I have a problem at my blog, whereby if a reader click the ‘Submit Comment’ link on the front page, they are taken to the article page but not directed down to where the comment form is.

    This only happens on articles that have not received any comments yet – as soon as they have, the #respond link anchor works fine. Additionally, this only seems to be a problem in FireFox – Internet Explorer direct the reader to the comments form fine.

    As an example, see the following articles:

    1)
    https://www.communityspark.com/now-you-can-work-less-and-achieve-more/#respond

    This takes you straight to the comments form (due to the #respond anchor at the end of the link)

    2)
    https://www.communityspark.com/death-and-taxes/#respond

    This fails to take you to the comments form even though there is the #respond anchor at the end of the link

    I have no idea why this is happening as by viewing the source I see the id for ‘respond’ listed in the right place. The fact this only happens in FireFox confuses me even more.

    Does anyone have any ideas??

    Many thanks

    Martin Reed

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter communityspark

    (@communityspark)

    *bump*

    Any ideas? Anyone?!?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    There’s something funky going on with that model that I can’t figure out. The H4 is getting shoved into the same block as the div above by the model for some reason, when I look at it with the Web Developer extension. The comments break that up so that it doesn’t happen.

    My only suggestion is to wrap the whole comment form (H4 and all) into a DIV and give that the id of respond, instead of putting the respond id on the H4 itself. That will ensure that you go to the correct block. This may require minor CSS tweaks (especially for the h4#respond) to make the H4 look right.

    Thread Starter communityspark

    (@communityspark)

    Thanks for your reply. I got around this issue by adding the anchor link to the end of each post – now all works fine, and the browser jumps to the same spot anyway.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘#respond anchor link not working’ is closed to new replies.