如何讓網頁能讓手機和IPAD看到呢??(ECSHOP)

高雄網頁設計公司,台中網站設計工作室,Q:我是使用ECSHOP的購物系統~如何讓網頁能讓手機和IPAD看到呢??
 
A:如果您是要看文字版的,請至後台打開wap,如果是要讓手機看起來像桌機、筆電一樣的畫面,請把index.php裡的
$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
$uachar = "/(nokia|sony|ericsson|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|mobile)/i";
if(($ua == '' || preg_match($uachar, $ua))&& !strpos(strtolower($_SERVER['REQUEST_URI']),'wap'))
{
$Loaction = 'mobile/';
if (!empty($Loaction))
{
ecs_header("Location: $Loaction\n");
exit;
}
}
 
這段刪除就行了,建議您最好先備份喔!