ajax view count disabled but td_ajax_update_views function still firing

Posted in: Newspaper
Post count: 62

Hi, in the theme panel settings, I disabled ajax view count but I am still seeing that td_ajax_update_views function is still firing (and causing slow down on my site). Would appreciate any feedback. Also, does disabling this feature work across all post types including custom post types?

Post count: 35449

Hi,

The Ajax view count is use for filter/sort of posts in blocks ( last 7 days ).

If you want to deactivate the view counter from posts -> https://www.screencast.com/t/tF1o6mZM94gQ

Thank you!

Post count: 62

I see. If I want to prevent the theme from using the td_ajax_update_views function, how would I do that?

Post count: 35449

Hi,

In order to prevent the theme to use the ajax filter for update view you’ll need to edit this file wp-content/themes/Newspaper/js/tagdiv_theme.js ccomment those lines
https://www.screencast.com/t/KVdv7l5PDHSp after that you need to mimify the javascript cod and set it in wp-content/themes/Newspaper/js/tagdiv_theme.min.js ( replace that content with the new one )

Minify your JavaScript -> https://javascript-minifier.com/

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.