How to make search function work with sticky navigation

  • Posted in : Read WP
  • otavtnou
    Participant

    Love the “Read” WP theme.

    ————————–

    My Problem:

    I use the WP PLUGIN “Sticky Menu (or Anything!) on Scroll” .

    It works perfectly with the trigger “nav#site-navigation.main-navigation”.

    BUT…

    When I scroll down on the website and the navigation becomes sticky, the search function doesn’t work anymore.

    Or more specifically the animation of the search function, which means it’s not possible to type in text.

    When I scroll up again to make the navigation become “unsticky”, the search function works normal.

    —————————-

    How can I get the search function to also work while the navigation is sticky?

    This is the one thing I would need to make my website perfect.

    Thank you so much!

    otavtnou
    Participant

    Found a different way to do it with working search function.

    I used http://stickyjs.com

    ….with a modified call function:

    jQuery(document).ready(function(){
    jQuery(“nav#site-navigation.main-navigation”).sticky({
    topSpacing:0, getWidthFrom:’page’,
    });
    });

    Mehmet S.
    Keymaster

    Ok. Good luck.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register