Open accordion if text inside is highlighted

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Open accordion if text inside is highlighted

This topic contains 2 replies, has 2 voices, and was last updated by dominik08 dominik08 1 year, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32565
    dominik08
    dominik08
    Participant

    Hello

    I’m using “Results text keyword highlighter” option in the plugin and it works well.

    On the results page, I have few accordions. My client would like to have the accordion opened if the text inside is highlighted.

    Could you tell me if there is some JavaScript event fired after your script finished adding “asp_single_highlighted_” classes to the website? I would like to use this event to check if classes are added to accordion and open them.

    #32579
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you for your kind words!

    I’m afraid there is no event fired after the classes are added. Maybe using a timeout or an interval function could also do the trick.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #32589
    dominik08
    dominik08
    Participant

    Thank you for the answer.

    I was hoping to avoid such a method, but if there is no other way I’m going to proceed with it.

    Thank you

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.