테스트 사이트 - 개발 중인 베타 버전입니다

add_style_sheet() 관련 채택완료

janedoe 7년 전 조회 3,119

그누보드5입니다 

1.

tail.sub.php에 

이 구문이 잘 붙어 있습니다

2.그누보드 설정 후 theme 폴더에 제가 만들려는 폴더를 만든 것 외에 수정한 부분이 없으니 common.lib.php도 그대로 일 것입니다. 

3.head.sub.php 에

<?php echo $g5_head_title; ?>

아래 css 파일들이 로드되고 있습니다 

4. meta 태그를 입력시 그럴 수 있다고 해서 meta 태그도 주석처리했습니다 

 

게시판 skin 에 css 파일이 로드 되지 않아 직접 로드 시켜서 해결은 했지만 

무엇이 문제인지 알고싶습니다 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 8개

채택된 답변
+20 포인트
o
7년 전

처리되는 과정이 

 /*                         밑으로 스킨의 스타일시트가 위치하도록 하게 한다.         */         $buffer = preg_replace('#([^<]*]+>)#', "$1$stylesheet", $buffer);

되어 있습니다 

 

타이틀 아래에 주석안 처럼

 

타이틀 끝에 스타일 시트가 오시는지 한번 확인해 보세요 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

j
janedoe
7년 전
3.head.sub.php 에

<title><?php echo $g5_head_title; ?></title>

아래 css 파일들이 로드되고 있습니다 라고 제가 썼는데요...
꼭 default.css 가 로드 되어야 하는 것일까요

댓글을 작성하려면 로그인이 필요합니다.

잉끼s
7년 전

...<title></p> <p><link....</p> <p> </p> <p>위와같이 title 바로밑에 <link.. 와 같이 반드시 하나이상의 스타일을 선언해주어야 하며, title과 link 사이에 공백이나 빈칸 빈 한줄이 포함되어 있으면 안되는 것으로 압니다.</p> </div> <!-- 좋아요/싫어요 및 액션 버튼 --> <div class="flex items-center justify-between pt-4 border-t border-gray-200 dark:border-gray-700"> <div class="flex items-center space-x-4"> <div class="text-sm text-gray-500 dark:text-gray-400"> 로그인 후 평가할 수 있습니다 </div> </div> </div> </div> <!-- 댓글 섹션 (답변 카드 안에 포함) --> <div class="mx-6 mb-6"> <div class="relative"> <!-- 연결선 표시 --> <div class="absolute -top-3 left-8 w-px h-6 bg-gradient-to-b from-gray-300 to-transparent dark:from-gray-600"></div> <div class="px-6 py-4 bg-gray-50 dark:bg-gray-900/50 rounded-lg border border-gray-200 dark:border-gray-700"> <!-- 댓글 목록 --> <!-- 디버깅: 답변 231552의 전체 댓글 구조 --> <!-- 댓글 수: 1, 대댓글 그룹 수: 0 --> <div class="mb-4"> <div class="flex items-center gap-2 mb-4"> <svg class="w-4 h-4 text-gray-600 dark:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-4 4z"></path> </svg> <h4 class="text-sm font-semibold text-gray-700 dark:text-gray-300">답변에 대한 댓글 1개</h4> </div> <div class="space-y-3"> <div id="c_231553" class="relative "> <div class="bg-white dark:bg-gray-800 rounded-lg border border-gray-100 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600 transition-all duration-200"> <div class="p-4"> <div class="flex items-start justify-between mb-3"> <div class="flex items-center gap-3"> <div class="w-8 h-8 bg-gradient-to-br from-blue-500 to-purple-600 rounded-full flex items-center justify-center text-white text-sm font-medium"> j </div> <div> <div class="font-medium text-sm text-gray-900 dark:text-white"> janedoe </div> <div class="text-xs text-gray-500 dark:text-gray-400" title="2018-02-23 (금) 23:26:19"> 7년 전 </div> </div> </div> </div> <div class="text-sm text-gray-700 dark:text-gray-300 comment-content leading-relaxed"> 아... 빈칸이나 공백 때문이었군요... 이제 정확히 알았네요.. 그런데 순위는 제가 10으로 지정해도 제가 로드한 css 보다 먼저 로드되는 건 왜 그런걸까요? 혹시 알수 있을까요 </div> <!-- 댓글 액션 버튼 --> <div class="flex items-center gap-2 mt-3 pt-2 border-t border-gray-100 dark:border-gray-700"> </div> <!-- 댓글 수정 폼 (숨김) --> <div class="comment-edit-form hidden mt-3"> <textarea class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:text-white text-sm resize-none" rows="3" placeholder="댓글을 수정하세요...">아... 빈칸이나 공백 때문이었군요... 이제 정확히 알았네요.. 그런데 순위는 제가 10으로 지정해도 제가 로드한 css 보다 먼저 로드되는 건 왜 그런걸까요? 혹시 알수 있을까요</textarea> <div class="flex justify-end gap-2 mt-2"> <button type="button" class="comment-save-btn px-3 py-1.5 bg-qa-btn-primary-bg-light hover:bg-qa-btn-primary-hover-light dark:bg-qa-btn-primary-bg-dark dark:hover:bg-qa-btn-primary-hover-dark text-white rounded-lg text-sm font-medium transition-colors" data-comment-id="231553">저장</button> <button type="button" class="comment-cancel-btn px-3 py-1.5 bg-gray-500 hover:bg-gray-600 text-white rounded-lg text-sm font-medium transition-colors">취소</button> </div> </div> <!-- 대댓글 작성 폼 (숨김) --> <div class="reply-form hidden mt-3 bg-gray-50 dark:bg-gray-700 rounded-lg p-3"> <div class="flex items-center gap-2 mb-2"> <svg class="w-3 h-3 text-gray-500 dark:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"></path> </svg> <span class="text-xs text-gray-600 dark:text-gray-300 reply-target"></span> </div> <form class="reply-form-element" data-parent-id="231552" data-comment-id="231553"> <input type="hidden" name="_token" value="poXgb4DAhGZO5udIayHPF56c8ZRBGKQSmUc0uoi1" autocomplete="off"> <textarea name="wr_content" placeholder="답글을 작성하세요..." rows="2" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:text-white text-sm resize-none" required></textarea> <div class="flex justify-end gap-2 mt-2"> <button type="button" class="reply-cancel-btn px-3 py-1.5 bg-gray-500 hover:bg-gray-600 text-white rounded text-sm font-medium transition-colors">취소</button> <button type="submit" class="px-3 py-1.5 bg-qa-btn-primary-bg-light hover:bg-qa-btn-primary-hover-light dark:bg-qa-btn-primary-bg-dark dark:hover:bg-qa-btn-primary-hover-dark text-white rounded text-sm font-medium transition-colors">답글 등록</button> </div> </form> </div> </div> </div> </div> <!-- 대댓글 표시 --> <!-- 디버깅: 댓글 1, 답변ID 231552, 대댓글 있음: 아니오 --> </div> </div> <!-- 댓글 작성 폼 --> <div class="text-center py-3"> <p class="text-sm text-gray-500 dark:text-gray-400"> 댓글을 작성하려면 <a href="/login" class="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300">로그인</a>이 필요합니다. </p> </div> </div> </div> </div> </div> <div id="answer_231531" class="bg-white dark:bg-gray-800 rounded-xl shadow-sm hover:shadow-lg transition-all duration-300 overflow-hidden border border-gray-200 dark:border-gray-700"> <div class="p-6"> <!-- 답변 작성자 정보 --> <div class="flex items-center justify-between mb-5"> <div class="flex items-center space-x-4"> <div class="relative inline-block" style="width: 48px; height: 48px;"> <!-- 프로필 이미지 사용 (업로드/소셜/레거시) --> <img src="https://phinf.pstatic.net/contact/20230429_234/1682738131577OG0yw_PNG/%C0%CF%BB%EATV2%B5%D5%B1%D9.png" alt="로빈아빠" class="w-full h-full rounded-full object-cover border-4 border-white dark:border-slate-600 shadow-lg" onerror="this.style.display='none'; this.nextElementSibling.style.display='block';"> <!-- 이미지 로드 실패 시 SVG 아바타 표시 --> <svg width="48" height="48" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" class="rounded-full" style="display: none;"> <defs> <linearGradient id="grad-fallback-avatar-6916b59a0e7048.80138736" x1="0%" y1="0%" x2="100%" y2="100%"> <stop offset="0%" style="stop-color:hsl(58, 88%, 56%);stop-opacity:1" /> <stop offset="100%" style="stop-color:hsl(88, 88%, 51%);stop-opacity:1" /> </linearGradient> </defs> <circle cx="50" cy="50" r="50" fill="url(#grad-fallback-avatar-6916b59a0e7048.80138736)" /> <text x="50" y="50" font-size="45" fill="white" text-anchor="middle" dy=".35em" font-weight="bold" font-family="sans-serif"> 로 </text> </svg> </div> <div> <div class="flex items-center space-x-2"> <a href="https://new-sir.gnuboard.net/profile/e0f96a7d-d018-4d2d-aceb-fd131d48ef25" class="font-semibold text-gray-900 dark:text-white hover:text-blue-600 dark:hover:text-blue-400 transition-colors"> 로빈아빠 </a> </div> <div class="text-sm text-gray-500 dark:text-gray-400">7년 전</div> </div> </div> <!-- 답변 액션 버튼들 --> <div class="flex items-center space-x-2"> </div> </div> <!-- 답변 내용 --> <div class="prose prose-lg max-w-none dark:prose-invert text-gray-800 dark:text-gray-200 leading-relaxed mb-6 qa-content"> <p>add style 소스를 보면 head.sub.php 제일 마지막 <?php echo html_end(); // HTML 마지막 처리 함수 : 반드시 넣어주시기 바랍니다. ?>에서 처리됩니다. 아마 마지막 까지 못가거나.. (중간에 exit)</p> <p><title><body> 사이에서 삽입된데 그게 없으나 할것같습니다. ^^</p> </div> <!-- 좋아요/싫어요 및 액션 버튼 --> <div class="flex items-center justify-between pt-4 border-t border-gray-200 dark:border-gray-700"> <div class="flex items-center space-x-4"> <div class="text-sm text-gray-500 dark:text-gray-400"> 로그인 후 평가할 수 있습니다 </div> </div> </div> </div> <!-- 댓글 섹션 (답변 카드 안에 포함) --> <div class="mx-6 mb-6"> <div class="relative"> <!-- 연결선 표시 --> <div class="absolute -top-3 left-8 w-px h-6 bg-gradient-to-b from-gray-300 to-transparent dark:from-gray-600"></div> <div class="px-6 py-4 bg-gray-50 dark:bg-gray-900/50 rounded-lg border border-gray-200 dark:border-gray-700"> <!-- 댓글 목록 --> <!-- 디버깅: 답변 231531의 전체 댓글 구조 --> <!-- 댓글 작성 폼 --> <div class="text-center py-3"> <p class="text-sm text-gray-500 dark:text-gray-400"> 댓글을 작성하려면 <a href="/login" class="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300">로그인</a>이 필요합니다. </p> </div> </div> </div> </div> </div> <div id="answer_231529" class="bg-white dark:bg-gray-800 rounded-xl shadow-sm hover:shadow-lg transition-all duration-300 overflow-hidden border border-gray-200 dark:border-gray-700"> <div class="p-6"> <!-- 답변 작성자 정보 --> <div class="flex items-center justify-between mb-5"> <div class="flex items-center space-x-4"> <div class="relative inline-block" style="width: 48px; height: 48px;"> <!-- SVG 아바타 사용 (기본값) --> <svg width="48" height="48" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" class="rounded-full"> <!-- 배경 원 (그라데이션) --> <defs> <linearGradient id="grad-avatar-6916b59a0ecc95.96407897" x1="0%" y1="0%" x2="100%" y2="100%"> <stop offset="0%" style="stop-color:hsl(85, 85%, 47%);stop-opacity:1" /> <stop offset="100%" style="stop-color:hsl(115, 85%, 42%);stop-opacity:1" /> </linearGradient> </defs> <circle cx="50" cy="50" r="50" fill="url(#grad-avatar-6916b59a0ecc95.96407897)" /> <!-- 닉네임 첫 글자 --> <text x="50" y="50" font-size="45" fill="white" text-anchor="middle" dy=".35em" font-weight="bold" font-family="sans-serif"> l </text> </svg> </div> <div> <div class="flex items-center space-x-2"> <a href="https://new-sir.gnuboard.net/profile/0f287262-97e2-471f-9be1-c24cfb559c28" class="font-semibold text-gray-900 dark:text-white hover:text-blue-600 dark:hover:text-blue-400 transition-colors"> logos </a> </div> <div class="text-sm text-gray-500 dark:text-gray-400">7년 전</div> </div> </div> <!-- 답변 액션 버튼들 --> <div class="flex items-center space-x-2"> </div> </div> <!-- 답변 내용 --> <div class="prose prose-lg max-w-none dark:prose-invert text-gray-800 dark:text-gray-200 leading-relaxed mb-6 qa-content"> <p>작동을 안할리가 있습니까?</p> <p>add_stylesheet 함수는 호출이 되었을겁니다</p> <p>여기에서 문제는 html_process 클래스의 변수인 $this->css 에</p> <p>중복된 스타일 시트라서 무시되었거나</p> <p>제대로 처리가 되었더라도 </p> <p>순서에서 밀렸거나.. 하는 이유일겁니다</p> <p>크롬 개발자 모드에서 확인해 보세요</p> <p>  1. 지정한 css 가 현재 제대로 load 되고 있는가</p> <p>  2. 로드된 순서는 뒤로 밀리지는 않았는지</p> <p>  3. 1,2 가 제대로 되었다 하더라도 css 가 지정한 엘리먼트에 제대로 적용되고 있는지</p> <p> </p> <p>이도 저도 안되면</p> <p>해당 URL 을 공개하셔서 답변받으시길 권합니다</p> <p>지금처럼 개발자가 이해하기 쉽지않은 텍스트로 질문하시면</p> <p>정확한 답변을 받기 쉽지 않을 수 있습니다</p> </div> <!-- 좋아요/싫어요 및 액션 버튼 --> <div class="flex items-center justify-between pt-4 border-t border-gray-200 dark:border-gray-700"> <div class="flex items-center space-x-4"> <div class="text-sm text-gray-500 dark:text-gray-400"> 로그인 후 평가할 수 있습니다 </div> </div> </div> </div> <!-- 댓글 섹션 (답변 카드 안에 포함) --> <div class="mx-6 mb-6"> <div class="relative"> <!-- 연결선 표시 --> <div class="absolute -top-3 left-8 w-px h-6 bg-gradient-to-b from-gray-300 to-transparent dark:from-gray-600"></div> <div class="px-6 py-4 bg-gray-50 dark:bg-gray-900/50 rounded-lg border border-gray-200 dark:border-gray-700"> <!-- 댓글 목록 --> <!-- 디버깅: 답변 231529의 전체 댓글 구조 --> <!-- 댓글 수: 1, 대댓글 그룹 수: 0 --> <div class="mb-4"> <div class="flex items-center gap-2 mb-4"> <svg class="w-4 h-4 text-gray-600 dark:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-4 4z"></path> </svg> <h4 class="text-sm font-semibold text-gray-700 dark:text-gray-300">답변에 대한 댓글 1개</h4> </div> <div class="space-y-3"> <div id="c_231530" class="relative "> <div class="bg-white dark:bg-gray-800 rounded-lg border border-gray-100 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600 transition-all duration-200"> <div class="p-4"> <div class="flex items-start justify-between mb-3"> <div class="flex items-center gap-3"> <div class="w-8 h-8 bg-gradient-to-br from-blue-500 to-purple-600 rounded-full flex items-center justify-center text-white text-sm font-medium"> j </div> <div> <div class="font-medium text-sm text-gray-900 dark:text-white"> janedoe </div> <div class="text-xs text-gray-500 dark:text-gray-400" title="2018-02-23 (금) 20:53:56"> 7년 전 </div> </div> </div> </div> <div class="text-sm text-gray-700 dark:text-gray-300 comment-content leading-relaxed"> 고마운 답변 감사드립니다 <br /> <br /> 그런데<title><?php echo $g5_head_title; ?></title><br /> <br /> 아래 <br /> <br /> <link rel="stylesheet" href="<?php echo G5_THEME_CSS_URL; ?>/<?php echo G5_IS_MOBILE ? 'mobile' : 'default'; ?>.css?ver=<?php echo G5_CSS_VER; ?>"> 구문을 제가 삭제하고 제가 제작한 css 링크만 로드해두니 작동을 하지 않았습니다. <br /> 그래서 위 구문을 붙여넣고 테스트해보니 작동이 잘 되더군요 제가 제작하는 테마에서는 default.css 라는 파일을 사용하지 않아서 지운 것이었는데 정규식표현으로 default.css 를 찾아서 그 다음에 로드가 되는 모양입니다. </div> <!-- 댓글 액션 버튼 --> <div class="flex items-center gap-2 mt-3 pt-2 border-t border-gray-100 dark:border-gray-700"> </div> <!-- 댓글 수정 폼 (숨김) --> <div class="comment-edit-form hidden mt-3"> <textarea class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:text-white text-sm resize-none" rows="3" placeholder="댓글을 수정하세요...">고마운 답변 감사드립니다 그런데<title><?php echo $g5_head_title; ?></title> 아래 <link rel="stylesheet" href="<?php echo G5_THEME_CSS_URL; ?>/<?php echo G5_IS_MOBILE ? 'mobile' : 'default'; ?>.css?ver=<?php echo G5_CSS_VER; ?>"> 구문을 제가 삭제하고 제가 제작한 css 링크만 로드해두니 작동을 하지 않았습니다. 그래서 위 구문을 붙여넣고 테스트해보니 작동이 잘 되더군요 제가 제작하는 테마에서는 default.css 라는 파일을 사용하지 않아서 지운 것이었는데 정규식표현으로 default.css 를 찾아서 그 다음에 로드가 되는 모양입니다.</textarea> <div class="flex justify-end gap-2 mt-2"> <button type="button" class="comment-save-btn px-3 py-1.5 bg-qa-btn-primary-bg-light hover:bg-qa-btn-primary-hover-light dark:bg-qa-btn-primary-bg-dark dark:hover:bg-qa-btn-primary-hover-dark text-white rounded-lg text-sm font-medium transition-colors" data-comment-id="231530">저장</button> <button type="button" class="comment-cancel-btn px-3 py-1.5 bg-gray-500 hover:bg-gray-600 text-white rounded-lg text-sm font-medium transition-colors">취소</button> </div> </div> <!-- 대댓글 작성 폼 (숨김) --> <div class="reply-form hidden mt-3 bg-gray-50 dark:bg-gray-700 rounded-lg p-3"> <div class="flex items-center gap-2 mb-2"> <svg class="w-3 h-3 text-gray-500 dark:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"></path> </svg> <span class="text-xs text-gray-600 dark:text-gray-300 reply-target"></span> </div> <form class="reply-form-element" data-parent-id="231529" data-comment-id="231530"> <input type="hidden" name="_token" value="poXgb4DAhGZO5udIayHPF56c8ZRBGKQSmUc0uoi1" autocomplete="off"> <textarea name="wr_content" placeholder="답글을 작성하세요..." rows="2" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-600 dark:text-white text-sm resize-none" required></textarea> <div class="flex justify-end gap-2 mt-2"> <button type="button" class="reply-cancel-btn px-3 py-1.5 bg-gray-500 hover:bg-gray-600 text-white rounded text-sm font-medium transition-colors">취소</button> <button type="submit" class="px-3 py-1.5 bg-qa-btn-primary-bg-light hover:bg-qa-btn-primary-hover-light dark:bg-qa-btn-primary-bg-dark dark:hover:bg-qa-btn-primary-hover-dark text-white rounded text-sm font-medium transition-colors">답글 등록</button> </div> </form> </div> </div> </div> </div> <!-- 대댓글 표시 --> <!-- 디버깅: 댓글 1, 답변ID 231529, 대댓글 있음: 아니오 --> </div> </div> <!-- 댓글 작성 폼 --> <div class="text-center py-3"> <p class="text-sm text-gray-500 dark:text-gray-400"> 댓글을 작성하려면 <a href="/login" class="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300">로그인</a>이 필요합니다. </p> </div> </div> </div> </div> </div> <div id="answer_231527" class="bg-white dark:bg-gray-800 rounded-xl shadow-sm hover:shadow-lg transition-all duration-300 overflow-hidden border border-gray-200 dark:border-gray-700"> <div class="p-6"> <!-- 답변 작성자 정보 --> <div class="flex items-center justify-between mb-5"> <div class="flex items-center space-x-4"> <div class="relative inline-block" style="width: 48px; height: 48px;"> <!-- SVG 아바타 사용 (기본값) --> <svg width="48" height="48" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" class="rounded-full"> <!-- 배경 원 (그라데이션) --> <defs> <linearGradient id="grad-avatar-6916b59a0f2d80.84861110" x1="0%" y1="0%" x2="100%" y2="100%"> <stop offset="0%" style="stop-color:hsl(354, 84%, 54%);stop-opacity:1" /> <stop offset="100%" style="stop-color:hsl(24, 84%, 49%);stop-opacity:1" /> </linearGradient> </defs> <circle cx="50" cy="50" r="50" fill="url(#grad-avatar-6916b59a0f2d80.84861110)" /> <!-- 닉네임 첫 글자 --> <text x="50" y="50" font-size="45" fill="white" text-anchor="middle" dy=".35em" font-weight="bold" font-family="sans-serif"> j </text> </svg> </div> <div> <div class="flex items-center space-x-2"> <a href="https://new-sir.gnuboard.net/profile/67f6e7ba-1849-413e-9cab-4ae4bc721916" class="font-semibold text-gray-900 dark:text-white hover:text-blue-600 dark:hover:text-blue-400 transition-colors"> janedoe </a> </div> <div class="text-sm text-gray-500 dark:text-gray-400">7년 전</div> </div> </div> <!-- 답변 액션 버튼들 --> <div class="flex items-center space-x-2"> </div> </div> <!-- 답변 내용 --> <div class="prose prose-lg max-w-none dark:prose-invert text-gray-800 dark:text-gray-200 leading-relaxed mb-6 qa-content"> <p>add_stylesheet()작동 안하신다는 분들 제가 위에 적은 tail.php  나 메타 태그 등도 확인하시고 </p> <p> </p> <p>head.sub.php 안에 </p> <p><title><?php echo $g5_head_title; ?>

아래 

 

구문 지우시면 안됩니다. 

 

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 2개

나나26
7년 전
동일한 증상으로 고민했는데, janedoe 님 말씀처럼 기본 style 삭제가 문제였네요~~ 덕분에 잘해결했습니다~^^ 감사합니다
j
janedoe
7년 전
도움이 되어서 저도 기쁘네요 ^^

댓글을 작성하려면 로그인이 필요합니다.

7년 전

(게시판,최신글) 스킨 등에 로드되는 css는 add_stylesheet 함수가 사용되지만 

head.sub.php 에서 보드의 css를 사용하실려면 전체적인 경로를 입력해 주셔야 합니다.

 

add_stylesheet('', 0);  경우는

게시판 스킨의 view.skin.php 같은곳 상단에 입력해 주시면 로드가 됩니다.

단 뒤에 나오는 숫자에 따라 빨리 로드 될수도 있고 나중에 로드가 될수 있습니다.

 

common.php 에 스킨의 경로가 정의 되어 있으니 참조 하세요.

 

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

j
janedoe
7년 전
제가 정말 질문의 요지를 잘못 적은 것같은데 수정이 안되니까 답답하네요 스킨에 적힌 add_stylesheet() 함수가 작동을 안한다는 것이 요지거든요 . 스타일시트 로드는 다른 방법으로도 가능해서 해결은 했는데 왜 안되는지가 궁금해서 질문을 올렸어요. 검색을 해보니 head.sub.php 에 타이틀 태그 다음에 스타일들이 있어야 위치를 찾아 로드한다는데 아무리해도 저 함수가 작동을 하지 않아서 궁금합니다 .

댓글을 작성하려면 로그인이 필요합니다.

7년 전

테마사용시에는,

/head.sub.php 가 사용되지 않고

/theme/[테마명]/head.sub.php 가 사용됩니다.

 

/theme/[테마명]/head.sub.php 에 코드를 넣어주시면 됩니다.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

j
janedoe
7년 전
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
를 head.sub.php에 입력해야하는 것인가요? 그럴리가 없는 것이 보드 스킨관련이라...

댓글을 작성하려면 로그인이 필요합니다.

함수명이 틀린것 같습니다.

add_stylesheet

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

j
janedoe
7년 전
제가 질문에 잘못썼고 작업물에는 제대로 되어있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인