• Resolved Nate Reist

    (@natereist)


    Is there a way to get the search results to position relative to the search form in a modal, or retrigger the positioning after the modal has shown? When calculating the position, it ends up offset to the bottom right considerably. Here is a screenshot illustrating the result position. Ideally I’d like it anchored to the modal window, or even not positioned but just dumped into a div in the modal-dialog since the modal will position automatically. Perhaps there is a method to override the properties for top, left, and width shown in this screenshot using PHP or Javascript? I’m using bootstrap 4.6, with a modal dialog vertically centered if that is helpful.

    Thanks in advance, this plugin is great ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Nate Reist

    (@natereist)

    After reading the next support thread here, I believe I may have a solution:

    add_filter( 'relevanssi_live_search_add_result_div', '__return_false' );

    I’ll give that a shot and mark this resolved for now, sorry to bother you.

    Plugin Author Mikko Saari

    (@msaari)

    Correct, that’s the usual solution for positioning woes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Positioning the results inside a modal window’ is closed to new replies.