Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Baden

    (@baden03)

    First of all, your page is ‘under construction’ so we can not see what exactly what you are referring to.

    However, yes, there are a number of ways. First, do you have the ability to trigger a callback function after the content is loaded dynamically? You’ll need to check with your theme or Search Filter Pro plugin to see if this is so.

    If not, you will have to write your own callback function, but this should not be too tricky.
    Let us know if you need further assistance on this.

    Thread Starter stefaanoyen

    (@stefaanoyen)

    Hi Baden,

    Sorry, the page should be available now. I contacted the Search Filter Pro plugin author, but he responded it’s over his head ; )

    Hi linked to this thread, but I have no clue where to start: https://www.designsandcode.com/forums/topic/ajax-checkboxes-turn-into-an-accordion/

    For your information: I use the Beautiful Pro Genesis theme from Studiopress. Genesis themes all have hooks (see https://genesistutorials.com/visual-hook-guide/) so I suppose they have callbacks also? I don’t know a thing about callbacks though, first time I’ll have to work with them.

    Could you help me out? I would appreciate it very much!

    Kind regards,
    Stefaan

    Plugin Author Baden

    (@baden03)

    Great! That first thread laid it out nicely. Good support!
    O.K. Do you have an easy place to insert Javascript in your theme?
    If not, are you using a childtheme?

    Basically you need to add the following Javascript:

    jQuery(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    	collapse_init();
    });

    If you get stuck, hit us back and we’ll try and point you in the right direction.
    Just FYI, if you level up and go pro… we would be happy to set this up for you, as part of our premium support. Regardless, we’ll stick with you on this.

    Thread Starter stefaanoyen

    (@stefaanoyen)

    Hi Brian, thanks for your great support!

    I enqueued your javascript in my child theme and everything works perfectly now.

    Thank you so much!
    Stefaan

    Plugin Author Baden

    (@baden03)

    Great! Issue marked as resolved.
    If you are into leaving reviews, please consider doing so!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Collapsed text expands when filtered with Ajax’ is closed to new replies.