Site logo

Archived topic

Excerpt Action Hook

38 replies · Started by Andy on June 2, 2019

Viewing posts 31–39 of 39

Hmmm - back to the drawing board - can you remove the jQuery script.

ok disabled jQuery and updated this thread with a new live URL.

So hopefully..... can't say for infinite scroll but this:

jQuery( document ).ready( function($) {
    $(document).on('click', '.accordion-toggle', function(event) {
        event.preventDefault();
        $(this).next().slideToggle('fast');
        //Hide the other panels
        $(".accordion-content").not($(this).next()).slideUp('fast');
        //Switch toggle
        $('.accordion-toggle.toggle-open').not(this).removeClass('toggle-open');
        $(this).toggleClass('toggle-open');
    });
});

Working perfectly, thank you so much!.

Hopefully this will work with any type of ajax style/infinite scroll as I may be using an ajax filter plugin with it's own infinite scroll.

Now just to get the star ratings to also show on Infinite scroll loaded posts, although the plugin developer for those is hopefully going to fix it.

Many thanks again!.

Phew... It should do - the on.(click) event won't be bothered by content not being loaded before the script is run. Not sure why that didn't work the first time but so glad we got there.

Great, many thanks again.

On a different note, what did you think of the general site design and layout?. It's going to be kind of version 2.0 of the current live site.

Really like it - nice sharp design, and the toggles add a bit of fun.

Thanks, appreciate the positive feedback.

You're welcome. Our FB community is full of users welcome to give feedback :)

This archived topic is closed to new replies.