Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gallery post format thumbnail issue when loaded from Ajax #8

Open
moe-moaid opened this issue Apr 23, 2022 · 0 comments
Open

gallery post format thumbnail issue when loaded from Ajax #8

moe-moaid opened this issue Apr 23, 2022 · 0 comments

Comments

@moe-moaid
Copy link

The Post "gallery" doesn't behave normally, there is another issue here:
the thumbnails don't show when the gallery post format is loaded using the loading button, however, if the post is showing on the page without loading i.e. the posted limit per page allows it, or the particular page which contains the post is refreshed, then it works fine,

Suggested Solution

adding the following piece of code inside the setTimeout function which is present inside the success portion of the Ajax function:

/*reveal carousel thumbnail after ajax loading*/
$( carousel ).on('slid.bs.carousel', function(){
	sunset_get_bs_thumbs( carousel );
});
sunset_get_bs_thumbs( carousel );

Please note

this piece of code should be added outside any if-else functions,
right where the revealPosts(); function was added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant