Ask your WordPress questions! Pay money and get answers fast! (more info)

Comments button breaks the infinite scroll plugin? WordPress

  • SOLVED

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, http://awesomescreenshot.com/019556b6f5

url to page, http://elizeryd.com/


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),
http://elizeryd.com/blogg-3/

Answers (1)

2015-08-12

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!