Đầu tiên vào file _header post code:
<!--parser:xtscript-->
assign $wapa2=<xt:get_device_template/>/head.html
call source $file=$splay
call source $file=../$splay
call source $file=../../$splay
call source $file=../../../$splay
call source $file=../../../../$splay
call source $file=../../../../../$tsplay
call source $file=../../../../../../$splay
call source $file=../../../../../../../$splay
call source $file=../../../../../../../../$splay
call source $file=../../../../../../../../../$splay
call source $file=../../../../../../../../../../$splay
call source $file=../../../../../../../../../../../$splay
call source $file=../../../../../../../../../../../../$splay
<!--/parser:xtscript-->
Sau đó vào _footer post code:
<!--parser:xtscript-->
assign $wapa2=<xt:get_device_template/>/foot.html
call source $file=$splay
call source $file=../$splay
call source $file=../../$splay
call source $file=../../../$splay
call source $file=../../../../$splay
call source $file=../../../../../$tsplay
call source $file=../../../../../../$splay
call source $file=../../../../../../../$splay
call source $file=../../../../../../../../$splay
call source $file=../../../../../../../../../$splay
call source $file=../../../../../../../../../../$splay
call source $file=../../../../../../../../../../../$splay
call source $file=../../../../../../../../../../../../$splay
<!--/parser:xtscript-->
Cuối dùng bạn tạo 2 thư mục mobile và web, trong mỗi thư mục có các file head.html và foot.html để hiển thị đầu trang và cuối trang khi truy cập từ pc và từ mobi nhé. Index thì dùng chung.