PDA

View Full Version : Infinity Scroller



sanfam
12-24-2014, 11:06 PM
Hi I have just purchased Ultra.
I'm using Joomla and joomlaart - Ja wall template.
The difficulty I am facing is that the buttons load on the first set of articles loaded but will not show on all subsequent infinity scroll loads. This is the link to the demo template - http://www.joomlart.com/demo/#ja_wall
Can you please advise on what needs to be done.

LikeBtn
12-25-2014, 05:03 AM
Hi,

Try this: http://likebtn.com/en/faq#ajax

sanfam
12-25-2014, 11:43 AM
Hi thanks for the quick reply. I am assuming the following 2 things.

1: The suggested code is inserted in the template index.php file?

if (typeof(LikeBtn) != "undefined") {
LikeBtn.init();
}

2: The button code is all inserted in the template index.php

<!-- LikeBtn.com BEGIN -->
<span class="likebtn-wrapper" data-theme="github" data-white_label="true"></span>
<script type="text/javascript" src="//w.likebtn.com/js/w/widget.js" async="async"></script>
<!-- LikeBtn.com END -->

And should be combined as follows:

<!-- LikeBtn.com BEGIN -->
if (typeof(LikeBtn) != "undefined") {
LikeBtn.init();
}
<span class="likebtn-wrapper" data-theme="github" data-white_label="true"></span>
<script type="text/javascript" src="//w.likebtn.com/js/w/widget.js" async="async"></script>
<!-- LikeBtn.com END -->

If I have understood it correctly it still will not load the buttons on the next page load.

LikeBtn
12-25-2014, 11:47 AM
Yes. You have to execute LikeBtn.init() after the next page is being loaded.