Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter greekstate

    (@greekstate)

    I have another issue: when I type in the search box and scroll, the results do not show up. I tried using position: fixed but it doesn’t work

    edit: found out how to change the color

    • This reply was modified 2 years, 5 months ago by greekstate.
    Plugin Author Mikko Saari

    (@msaari)

    Can you please show me a page where the issue exists? Without seeing it in action, I can’t say anything about a problem like that.

    Thread Starter greekstate

    (@greekstate)

    Thread Starter greekstate

    (@greekstate)

    Can I send a link to my website?

    Plugin Author Mikko Saari

    (@msaari)

    I can’t do that; it’s against the forum rules: “Do not post email addresses, ask others to post their email or solicit contacting people off of the forums.”

    If you can post a link here, I can help, but I can’t provide private service outside the forums.

    Thread Starter greekstate

    (@greekstate)

    Thread Starter greekstate

    (@greekstate)

    I tried posting links but my messages are being held for moderation

    Plugin Author Mikko Saari

    (@msaari)

    They’ll pop up there eventually.

    Plugin Author Mikko Saari

    (@msaari)

    Ah, I see. The problem is this: Live Ajax Search uses jQuery("#s").offset() to get the location of the search input field to place the results just below it.

    When the page is scrolled to the top, this returns {top: 23.8515625, left: 1201.5078125}, which is the right spot.

    When I scroll down and run jQuery("#s").offset() again, the top value changes. So, for some reason, offset() believes the header isn’t fixed on top of the document but instead scrolls down the page.

    The good news is: I found a solution for this. It requires an update to the plugin, but once I release the next version, all you need to do is to add this to your theme functions.php or in a code snippet:

    add_filter( 'relevanssi_live_search_configs', function( $configs ) {
        $configs['default']['results']['static_offset'] = false;
        return $configs;
    } );

    This will make Live Ajax Search calculate the offset differently, which should work with your header.

    Thread Starter greekstate

    (@greekstate)

    Thank you!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Changing the spinning wheel’s color’ is closed to new replies.