Skip Navigation

[Closed] Slider on Loop didn't show and should refresh it first

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 1 year, 5 months ago.

Assisted by: Minesh.

Author
Posts
#2627913

Hello, i gonna add Dynamic Slider in my Loop Template. But when i filter them, the slider didn't show immediately, and only show after i refresh it first. I believe it is not because my internet connection cause i try this regularly and always show same result.
I already purge cache, and also tried mark those page as non cacheable, but still in same issue.
I beg you to give me any suggestion, please. Thank you.
hidden link

#2628149

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

It seems you will have to use the Toolset view's ajax hook.

Here is the Doc that shows how you can add the frontend events:
- https://toolset.com/documentation/programmer-reference/adding-custom-javascript-code-to-views-that-use-ajax/

This is related ticket that might help you:
- https://toolset.com/forums/topic/is-there-a-list-of-frontent-events/#post-1207853
- https://toolset.com/forums/topic/after-reset-form-lost-my-js-function/#post-1642761

If you are using Toolset Blocks then you can find the "Custom JS" section under "Custom JS and CSS" section on right sidebar when you select your view block. Please check the following related ticket:
=> https://toolset.com/forums/topic/search-do-not-show-items-before-using-filters/#post-1902345

You can add custom custom JS code to reinitialize your slider.

#2628437
Screenshot 2023-07-30 141753.png

Hello, i've tried add custom JS and ID in the View, but nothing change. The slider in result list didn't show yet.
Am i did something wrong with the code?

jQuery( document ).on( 'js_event_wpv_parametric_search_results_updated', function( event, data ) {
/**
* data.view_unique_id (string) The View unique ID hash
* data.layout (object) The jQuery object for the View layout wrapper
*/
jQuery("#custom-search .js-wpv-loop-wrapper").show();

});

#2628617

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please share problem URL and admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

The topic ‘[Closed] Slider on Loop didn't show and should refresh it first’ is closed to new replies.