New Landing How can we help? Themeforest Theme Support Neighborhood No focus in "keep search box"

Viewing 15 posts - 1 through 15 (of 17 total)
  • #80505
    azura_eyes
    Member
    Post count: 48

    Hi,

    I wanted to have a visible search box WITHOUT an animated effect in the Neighborhood theme. So I found two posts covering it and tried the code mentioned there:
    http://support.swiftideas.net/forums/topic/keep-search-box-open/
    http://support.swiftideas.net/forums/topic/search-box-placement/

    The placement and visibility of the box is as I wanted BUT unfortunately the is no focus in the, now, visible search box. I mean that you STILL have to click on the magnifying glass icon first to change the cursor to be able to type the string you are searching for. Do you follow? Please see the pic for more info.

    How to solve this and get the I cursor directly in the “visible” search box without clicking on the search icon?

    Thanks!

    #80712
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You want by default when we access your website that the search box got the focus on it? That’s it?
    Remember that only one object in the page can have a current focus. The input fields by default gain focus only when we press them, although we can programmatically set a focus on a specifix element of the page.

    Can you also provide us your website url?

    Best Regards,
    Rui

    #80731
    azura_eyes
    Member
    Post count: 48

    Hi Rui,

    the thing is that the focus is NOT on when the vistior kicks on the input field BUT first the visitor has to click on the icon to get the focus into the input field.
    I think this is because the javascript keeps the behaviour from the “hidden/animated” search field.
    And now when the field is visible, thats to your code from here http://support.swiftideas.net/forums/topic/keep-search-box-open/, the focus behaviour has to be also updated.

    So I wonder how to changed it?

    The installation is local ๐Ÿ™

    Thanks a lot for great theme and help!

    #81101
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please follow this topic http://support.swiftideas.net/forums/topic/keep-search-box-open/ to change the search box open always.
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #81174
    azura_eyes
    Member
    Post count: 48

    -> Mohammad โ€“ SUPPOR

    Hi Mohammad, thanks for reply but please READ my messages!
    I used the code from the mentioned post BUT the code is not working correctly… as I wrote in my previous messages here.

    Thanks and looking forward answer!

    #81181
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Where did you put this code ? Please go to Admin -> Theme Options -> Custom CSS => Here put given code and update options.

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #81184
    azura_eyes
    Member
    Post count: 48

    Hi,

    from style.css from the theme (to speed up the theme, the custom code is added in the end of the style.css)

    /* updates starts ======================== */

    nav .menu-search ul.sub-menu {
    opacity: 1;
    }
    .menu-search .sub-menu {
    top: 0 !important;
    background-color:transparent !important;
    }
    .menu-search ul li form input {
    margin: 4px;
    }
    nav .menu ul.sub-menu li:first-child:before {
    border: none;
    }
    .ajax-search-results {
    background: #fff;
    }

    /* updates ends ======================== */

    #81187
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide your website URL always.
    Thanks

    #81190
    azura_eyes
    Member
    Post count: 48
    This reply has been marked as private.
    #81223
    Melanie – SUPPORT
    Member
    Post count: 11032

    I think we are having a bit of miscommunication here ๐Ÿ™‚

    So I recap: you managed to have your search field always visible, but upon clicking the text field, you cannot type in it, you need to click the magnifying glass first.

    I can verify this problem on your website and will try to find a solution for you!

    Stay tuned please!
    All the best

    #81225
    Melanie – SUPPORT
    Member
    Post count: 11032

    Open functions.js and look for the line

    			jQuery('.ajax-search-form input[name=s]').on('keyup', function(e) {
    

    Change keyup to mousedown

    keyup basically means that an event is triggered when you release a button on your keyboard, which is the letting go of the mouseclick of the magnifying glass. mousedown should fix it. I did not test it, so please let me know what happens!

    #81289
    azura_eyes
    Member
    Post count: 48

    Hi Melanie,

    thanks for reply! ๐Ÿ™‚

    I put the javascript in to theme/js/functions.js BUT unfortunately it did not changed the trigger AND also even DEACTIVATED the dynamic search result in the drop down ๐Ÿ™
    Please the url from my previous private message (there u can see the search field).

    Thanks a lot!

    #81431
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hmmmm sorry about that, I will forward it to the developer then, I’m sure he knows where the code is hiding!

    #81444
    azura_eyes
    Member
    Post count: 48

    Ok, thanks, I wait ๐Ÿ™‚

    #81623
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    This is the code you need:

    #main-nav .header-right ul.menu > li.menu-search ul.sub-menu {
    z-index: 9999;
    top: 0;
    pointer-events: all;
    }

    Hope that helps!

    – Ed

Viewing 15 posts - 1 through 15 (of 17 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