This topic contains 2 replies, has 2 voices, and was last updated by dominik08 1 year, 11 months ago.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
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 1 year, 11 months ago.
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.
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,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
You must be logged in to reply to this topic.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |