Okay
  Public Ticket #2755402
Product filter
Closed

Comments

  • Vasiliy started the conversation

    Hello. I installed a product filter on my site. But when you first open the page, it looks like it is shown in image number 1. After reloading the page, it is displayed correctly (image 2) Tell me what the problem may be? I understand that this is possible due to the fact that I use the AJAX loader, but this function is necessary for me. How can I solve this problem? Thanks

    Second question. Can I enable your theme filter, which is used to filter albums, only for single woocommerce products?

  •  1,103
    Max replied

    Hi, 

    Probably the filter is not compatible with PJAX (Page Loading via AJAX). Check with the author of that plugin if there is a Javascript function you can call to init the plugin. You can add custom JS call in WP-Admin > Theme Options > Custom CSS/JS. The JS function you put there will be called every time a page has loaded.

    You will need to check with the author of that plugin if it can work. Im very not familiar with this plugin.

    The other solution is to turn off PJAX specifically for this page by adding 'no-ajax' (without single quotes) css class on your menu item that leads on that page.

    For the theme filter, which theme filter are you referring to exactly?

    Thanks,


    Max from the Sonaar.io Crew

  • Vasiliy replied

    Ok, I'll check it out. Thanks! As for the second question, I have already found a solution. Thank you for your help!

  •   Vasiliy replied privately
  •  1,103
    Max replied

    in WP-Admin > Theme Options > Custom CSS/JS > Custom JS:

    https://d.pr/i/QU99Th

    Thanks,


    Max from the Sonaar.io Crew

  • Vasiliy replied

    Yes, it works! Thank you for your help! I appreciate it!

  •  1,103
    Max replied

    You are welcome

    Thanks,


    Max from the Sonaar.io Crew