Quên mật khẩu
 Register
Xem: 1531|Trả lời: 0

Q2A tips: Hide top search box

[Sao chép liên kết]
Đăng vào 12-1-2016 22:25:35 | Hiển thị tất cả tầng |Chế độ đọc
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()
Sao chép mã
Replace with
  1. function nav_user_search() { }
Sao chép mã
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>
Sao chép mã




Bạn cần đăng nhập để trả lời Đăng nhập | Register

Quy tắc tích điểm trong diễn đàn này

Archiver|iPhone|Phòng tối|G+|Youtube|Facebook|Twitter|Contact|Netdepviet.org

GMT+7, 29-6-2024 06:45 AM , Processed in 0.016725 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team

Trả lời nhanh Lên đầu trang Quay lại danh sách