+ Reply to Thread
Results 1 to 5 of 5

Thread: How to disable this kws-block ?

  1. #1

    How to disable this kws-block ?

    Hello Rudi,

    I have only one listing type, how to turn off the horizontal search block with tabs if the user only enters the location without choosing a category ?

    skip.jpg

    Thank you

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,099
    Hello,

    Go to templates > your_template > tpl > controllers > search.tpl

    add:
    Code:
    Only registered members can view the code.
    before:
    Code:
    Only registered members can view the code.
    and after:
    Code:
    Only registered members can view the code.
    add:
    Code:
    Only registered members can view the code.

    then add:
    Code:
    Only registered members can view the code.
    before:
    Code:
    Only registered members can view the code.
    and after:
    Code:
    Only registered members can view the code.
    add:
    Code:
    Only registered members can view the code.

    before:
    Code:
    Only registered members can view the code.
    and after:
    Code:
    Only registered members can view the code.
    do the same
    Last edited by Rudi; April 9, 2021 at 04:56 AM. Reason: Corrected

  3. #3
    Quote Originally Posted by Rudi View Post
    Hello,

    Go to templates > your_template > tpl > blocks > search.tpl

    before:
    Code:
    Only registered members can view the code.
    add:
    Code:
    Only registered members can view the code.

    and after:
    Code:
    Only registered members can view the code.
    add:
    Code:
    Only registered members can view the code.

    then before:
    Code:
    Only registered members can view the code.
    add:
    Code:
    Only registered members can view the code.
    and after:
    Code:
    Only registered members can view the code.
    add:
    Code:
    Only registered members can view the code.

    before:
    Code:
    Only registered members can view the code.
    and after:
    Code:
    Only registered members can view the code.
    do the same

    The search.tpl file does't exist in the specified directory, the file where I can find the mentioned codes is side_bar_search.tpl but does not include the last code.

    Update:

    There is search.tpl under my_template > tpl > controllers



    Thank you
    Last edited by Mohamed Gharib; April 8, 2021 at 04:14 PM.

  4. #4
    Anyway it does not work, I had several errors. Maybe i missed something when i added the codes

  5. #5
    Honestly I looked at the code and it should be simple. Just takes it carefully, since it could be tricky to open and close tag <if>. If you can't make it right then just create a ticket. By looking at your registration, you should still be covered with support package, flynax will help you for free.

+ Reply to Thread