View: 2003|Reply: 0

Q2A tips: Hide top search box

[Copy link]
Posted on 12-1-2016 22:25:35 | Show all floors |Reading mode
How to remove top search box in question2answer
See demo : http://thuvienxanh.com
Open qa-theme/<your-theme>/qa-theme.php file and locate the function:
  1. nav_user_search()
Copy code
Replace with
  1. function nav_user_search() { }
Copy code
Bonus tips:
Display search box in the main top widget:
1. Install q2a-widget-anywhere
2. Add new widget : search box in main top
with the following content


  1.     <div class="qa-search">

  2.     <form method="GET" action="../search">

  3.     <input type="text" name="q" value="" class="qa-search-field">
  4.     <input type="submit" value="Search" class="qa-search-button">
  5.     </form>
  6.     </div>
Copy code




Reply

Use item Report

You need to log in to reply. Login | Register

Points Rules for This Section

Theo dõi bản tin
Archiver|Mobile|Facebook|Contact|Netdepviet.org

Giữ gìn bản sắc dân tộc · Trân trọng quá khứ, hướng tới tương lai。

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

InThis boardPost
Kết nối Zalo
Back to top