모바일 페이지를 추가하고 싶습니다.
본문
PC에서는
theme/company/head.php
theme/company/head.new.php
로 구분되어서 페이지가 나뉘어져 있습니다.
하지만 mobile 에서는
theme/company/mobile/head.php
하나로 같이 쓰이고 있습니다.
그래서 모바일에도 new.php를 추가시켜서
head.new.php와 연동 시키고 싶은데
어떻게 추가하고 어떻게 수정해야 하는지를 모르겠습니다.
답변 1
theme/company/head.php 상단에 아래의 소스가 있나요?
if (G5_IS_MOBILE) {
include_once(G5_THEME_MOBILE_PATH.'/head.php');
return;
}
theme/company/head.new.php 상단에도 아래 소스로 수정하면 되겠죠??
if (G5_IS_MOBILE) {
include_once(G5_THEME_MOBILE_PATH.'/head.new.php');
return;
}
답변을 작성하시기 전에 로그인 해주세요.