내용관리로 만든 페이지를 Wide로 변경하기
content.php
페이지를 wide로 변경해봅니다.
content 페이지만(or 일부 페이지만) 오른쪽 aside 영역을 숨기고, wide로 나타내는 경우입니다.
wrapper width를 100%로 하면 full wide도 가능합니다.
bbs/_head.php
를 복사해서
bbs/_head_wide.php
로 이름을 바꿉니다.
내용에서
[code]include_once(G5_PATH.'/_head.php');[/code]를
[code]include_once(G5_PATH.'/_head_wide.php');[/code]로 바꿉니다.
_head.php
를 복사해서
_head_wide.php
로 이름을 바꿉니다.
내용에서
[code]include_once(G5_PATH.'/head.php');[/code]를
[code]include_once(G5_PATH.'/head_wide.php');[/code]로 바꿉니다.
head.php
를 복사해서
head_wide.php
로 이름을 바꿉니다.
내용에서
[code]require_once(G5_THEME_PATH.'/head.php');[/code]를
[code]require_once(G5_THEME_PATH.'/head_wide.php');[/code]로 바꿉니다.
theme/테마명/head.php
를 복사해서
theme/테마명/head_wide.php
로 이름을 바꿉니다.
내용에서
[code]
<?php //echo outlogin('theme/basic'); // 외부 로그인, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?>
<?php //echo poll('theme/basic'); // 설문조사, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?>
<?php if ((!$bo_table || $w == 's' ) && !defined("_INDEX_")) { ?>
[/code]아웃로그인과 설문조사를 주석으로 숨기고 'container' id를 수정합니다.
※ 테마에 따라 소스가 다를 수 있습니다.
theme/테마명/css/default.css
[code]#container2 {z-index:4;position:relative;float:left;padding:15px 16px 15px 15px;width:939px;min-height:500px;height:auto !important;height:500px;border-right:1px solid #dde4e9;background:#fff;font-size:1em;zoom:1}
#container2:after {display:block;visibility:hidden;clear:both;content:""}
#container2_title {margin-bottom:20px;font-size:1.2em;font-weight:bold}[/code]'container' 소스를 복사해서 바로 아래에 삽입하고 위와같이 수정합니다.
'id'와 'width' 수정
※ 테마에 따라 소스가 다를 수 있습니다.
{이미지:0}
content.php
상단 파일 경로만...
bbs/_head_wide.php
제일 처음 만들었던 파일의 이름을 입력해줍니다.('bbs/'는 생략)
참조 : 내용관리로 페이지를 만드는 것은 많이 불편합니다. 유지보수도 불편하구요.
아래의 페이지 만들기로 사용하시기를 권합니다.
http://sir.co.kr/g5_tip/3022
페이지 만들기의 최종결과 파일
theme/테마명/페이지명.php
에
[code]include_once(G5_THEME_PATH.'/head.php');[/code]대신
[code]include_once(G5_THEME_PATH.'/head_wide.php');[/code]이렇게 위에서 만든
theme/테마명/head_wide.php
을 불러오면 됩니다.
페이지 만들기는 내용관리와 달리
theme/테마명/head_wide.php
theme/테마명/css/default.css
마지막 두 과정만 있으면 됩니다. 그 앞의 과정들은 필요치 않습니다.
예 : http://internationale.kr/index_example_2.php
댓글 1개
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 3년 전 | 4406 | ||
| 354 | 10년 전 | 20334 | ||
| 353 | 10년 전 | 6527 | ||
| 352 | 10년 전 | 6717 | ||
| 351 | 10년 전 | 5802 | ||
| 350 | 10년 전 | 7648 | ||
| 349 | 10년 전 | 7232 | ||
| 348 |
아직도초짜
|
10년 전 | 10019 | |
| 347 | 10년 전 | 25032 | ||
| 346 | 10년 전 | 13973 | ||
| 345 | 10년 전 | 8117 | ||
| 344 | 10년 전 | 10083 | ||
| 343 | 10년 전 | 9031 | ||
| 342 | 10년 전 | 9605 | ||
| 341 | 10년 전 | 17781 | ||
| 340 | 10년 전 | 7907 | ||
| 339 |
|
10년 전 | 4833 | |
| 338 | 10년 전 | 7817 | ||
| 337 | 10년 전 | 8611 | ||
| 336 | 10년 전 | 15598 | ||
| 335 | 10년 전 | 7941 | ||
| 334 | 10년 전 | 10004 | ||
| 333 | 10년 전 | 11018 | ||
| 332 | 10년 전 | 7607 | ||
| 331 | 10년 전 | 6244 | ||
| 330 | 10년 전 | 12017 | ||
| 329 | 10년 전 | 8920 | ||
| 328 | 10년 전 | 7491 | ||
| 327 | 10년 전 | 10420 | ||
| 326 | 10년 전 | 8377 | ||
| 325 | 10년 전 | 17569 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기