How to reload a chosen widget (or whole sidebar) everytime when pagination used?
-
Hello,
Just trying a great post slider plugin. (Theia Post Slider)
It is dynamically loading the next pages in a single post without reloading the whole page. (site.com/article/1… /2… /3… etc)
What I need is, every time someone clicks on next page button, I want the sidebar to reload a certain widget or WHOLE sidebar, so the CPM ads will refresh and will make me earn more money as they will be seen more time.
Here is an example page:
Click on NEXT button above the image and every 2nd page, you will see that the AD Box widget on the right sidebar reloads and a new ad appears.
I am using exactly the same plugin for my site too.
Example url from my site:
https://bit.ly/1AdWEcpDo you have any idea about how can I trigger a widget to reload when someone clicks NEXT on my page slider?
This plugin is not just a slider, it is actually showing the <–nextpage–> tagged pages in a single post and it counts as a pageview in google analytics etc.
Very fast and more efficient than reloading the whole site (people do not like it), but now I am losing AD Views for sidebar ads..
In slider support page it has the following info:
*************************************************
The plugin offers a humble API for developers who wish to extend its functionality. Right now you can hook your code into the tps.changeSlide” event, which triggers whenever the user navigates to another slide. Note that this event is fired after the slide has been loaded via AJAX (if applicable).Sample code:
jQuery(document).bind(‘theiaPostSlider.changeSlide’, function(event, slideIndex) {
alert(‘The user has navigated to slide number ‘ + (slideIndex + 1));
});***********************************************
Can this code help me somehow?
Please help me and show me the way.
If bleacherreport.com could do it, it means i can do it too, i just dont know how.
Thank you!
- The topic ‘How to reload a chosen widget (or whole sidebar) everytime when pagination used?’ is closed to new replies.