title 표시중에 > 을 없애고 싶습니다.

title 표시중에 > 을 없애고 싶습니다.

QA

title 표시중에 > 을 없애고 싶습니다.

답변 1

본문

안녕하세요.

 

메타태그를 손보는 중에 게시판 타이틀을 보면 

게시판이름 > 사이트이름  이런식으로 뜹니다.     > <----- 저 꺽세를 없애고 싶은데

어디를 수정봐야 할까요?

 

제가 수정본 소스는

게시판 타이틀 변경
/bbs/board.php 파일 
$g5['title'] = strip_tags(conv_subject($write['wr_subject'], 255))." > ".((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']); 
변경 후
$g5['title'] = strip_tags(conv_subject($write['wr_subject'], 255));


/bbs/board.php 파일 
$g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']).' '.$page.' 페이지';
변경 후
$g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']);
 

이렇게 수정을 했는데    꺽세는 사라지지 않습니다.  

> 을 - 로 바꾸거나 아예 없애고 싶은데 어디를 수정해야 하는지 알려주세요..

이 질문에 댓글 쓰기 :

답변 1

변경전/후로 올리신 영역위에

 

 

기본적을  139라인부근에

 > 가 포함된 

 

$g5['title'] = strip_tags(conv_subject($write['wr_subject'], 255))." > ".((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']);

 

가 있습니다.

이걸

$g5['title'] = strip_tags(conv_subject($write['wr_subject'], 255))..((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']);

 

이렇게 없애보세요

답변 주셔서 감사드립니다.
말씀하신 부분은 해봤는데.. 같은 현상이더라고요;;;
$g5['title'] = strip_tags(conv_subject($write['wr_subject'], 255))." - ".((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']);

이렇게 했는데 <title></title> 태그에는 적용이 안되더라고요..

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 125,873
© SIRSOFT
현재 페이지 제일 처음으로