Để bắt đầu bạn dán code
sau vào giữa 2 thẻ
<head></head> của file
index ( trang chủ wap của
bạn và bạn phải mở trình
soạn thảo văn bản ra mới
thấy được thẻ head đó)
<!--parser:xtscript-->
assign $device=<xt:get_device_template />_index
assign $site=<xt:url type="domain" />
print <script type="text/javascript"> location.href='http://$site/$device';</script>
print <meta http-equiv="refresh" content="0;http://$site/$device" />
<!--/parser:xtscript-->
Sau đó bạn tạo các file
mobile_index
touch_index
web_index
Và thiết kế với
mobile_index là trang
hiển thị cho người dùng
trình duyệt di động.
touch_index là trang hiển
thị cho người dùng máy
cảm ứng.
web_index là trang hiển
thị khi người dùng sử
dụng pc hay laptop
Tiếp theo bạn dán code
sau vào _headtags
<!--parser:xtscript-->
assign $css=<xt:get_device_template />_nuocnamwap.css
assign $site=<xt:url type="domain" />
print <link rel="stylesheet" type="text/css" href="http://$site/$css" />
<!--/parser:xtscript-->
Rồi tạo các file
mobile_nuocnamwap.css
touch_nuocnamwap.css
web_nuocnamwap.css
Với
mobile_nuocnamwap.css
là style dành cho di động
touch_nuocnamwap.css
là style dùng cho máy
cảm ứng
web_nuocnamwap.css
là style dùng cho trình
duyệt web, pc
Những style này bạn có
thể copy ở các trang mà
bạn thích nếu như bạn
chưa biết thiết kế chúng.
Chúc các bạn thành công!