채택완료

메인 공지사항 원하는 글만 노출되게 하는 방법

2019-08-31 (토) 18:04:20 3,687

2949944446_1567241758.4352.jpg

메인화면에 저런 박스로 해서 공지사항 게시판 최신글 순서로 노출되도록 되어 있습니다.

최신글 대신 저 ㅇㅇ 부분을 클릭하면 제가 원하는 공지글로 이동될 수 있도록 하고 싶어요.

그리고 옆에 좌우 화살표도 아예 없애고 싶은데 어떻게 수정을 해야 할까요? ㅠㅠ

index.php

<!--  공지 최신글2 { -->
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/notice', 'notice', 6, 43);
?>
<!-- } 공지 최신글2 끝 -->

notice/latest/style.css

.notice_wr .bx-prev{background:url('./btn_prev.png') #656aff no-repeat 50% 50%;width:28px;height:28px;display:inline-block;text-indent:-999px;overflow:hidden;vertical-align:top} 
.notice_wr .bx-next{background:url('./btn_next.png') #656aff no-repeat 50% 50%;width:28px;height:28px;display:inline-block;text-indent:-999px;overflow:hidden;vertical-align:top;margin-left:1px} 
 
@media (max-width: 969px){
    .notice_wr{margin:30px 15px}
}

@media (max-width: 639px){
    .notice_wr{margin:15px 0;padding-left:80px}
    .notice_wr h2{padding:0 15px}
    .notice_wr .bx-controls-direction{right:15px}
    .notice_wr{line-height:55px}
}

|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트
2019-08-31 (토) 18:42:08

theme/skin/latest/notice/latest.skin.php 파일입니다.

서브젝트함수를 직접 입력하시고 링크 href도 직접하시면됩니다.

답변에 대한 댓글 1개

원하는 대로 해결됐네요 감사합니다!

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