• Hey guys,

    How would we go about opening the full screen search with a custom button? Would this be a custom javascript or jQuery function? Something similar to <button onclick=”myFunction()”>Click me</button> or something like this?

    I know this would be a special request but if someone can point me in the right direction that would be very helpful. Thanks much in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there @aronjeney,

    I did it with a small modification of the full-screen-search.js file. In line 7 change from this:

    $( ‘form[role=search] input, form[role=search] button’ ).on( ‘focus, click’, function( event ) {

    to this:

    $( ‘form[role=search] input, form[role=search] button, a[href=”#search”]’).on( ‘focus, click’, function( event ) {

    …so that way we add an event for a buttom with that url.
    Next thing to do is to create a custom button in the main menu with ‘#search’ url.

    Hope it helps you… and others.

    ??

    • This reply was modified 7 years, 1 month ago by Luis Colome.
    • This reply was modified 7 years, 1 month ago by Luis Colome.
    Thread Starter aronjeney

    (@aronjeney)

    Hey @luiscolome, we have gone with a different solution, but I appreciate your reply!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Open full screen search from custom button’ is closed to new replies.