Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Comments button breaks the infinite scroll plugin? WordPress


When I add this "comments button link" it breaks the infinite scroll plugin on my wordpress page.
How can I solve that?

This is the code for the comments button,
<a href="<?php comments_link(); ?>"><div class="button">Kommentera</div><a>

See screenshot,

url to page,

If I just remove the "comments button" the infinite-scroll works again...

On this page you can see how it supposed to work with the infinte-scroll plugin (just scroll down the page),

Answers (1)


Darlene Grace Arcenal answers:

Can you try this instead:

<div class="button"><a href="<?php comments_link(); ?>">Kommentera</a></div> . I noticed you didn't close the <a> tag.

johny comments:

Great thanks!