Ajax categories dropdown does not work

Posted in: Newspaper
Post count: 15

Hi,

I don’t know when, but on our page stopped working ajax categories dropdown. They are shown, but when you click on them it moves page to up and nothing is filtred. We use them in Flex Block 4.

I’ve made a research why it does not work. I have tried turning off WP Rocket and Redis object cache, but no results. I’ve found out, that this code from your js (/wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js?ver=11.5.1):

jQuery(".td-subcat-item a").on("click", function(a) {
a.preventDefault();
a = tdBlocks.tdGetBlockObjById(jQuery(this).data("td_block_id"));
!0 !== a.is_ajax_running && (a.is_ajax_running = !0,
jQuery("." + jQuery(this).data("td_block_id")).find(".td-cur-simple-item").removeClass("td-cur-simple-item"),
jQuery(this).addClass("td-cur-simple-item"),
a.td_filter_value = jQuery(this).data("td_filter_value"),
a.td_current_page = 1,
tdBlocks.tdAjaxDoBlockRequest(a, "pull_down"))
});

When page is completly loaded and subcategories are shown (they are some how lazyloaded) and I paste this code into the console, ajax categories works.

You can chek it here on homepage (e.g. section “Video”): https://www.inrybar.cz/

How to fix this please?

With best regards,
David Pavelka

Post count: 21065

Hello David!

We can take a look at this and investigate why it is not working for you. Contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– cpanel url and credentials
– a link to this topic in order to identify you

Thank you!

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