최신글에 보이는 li안보이게할 순 없나요
관련링크
본문
최신글
최신글앞에 점 두개찍히는걸 한개만 찍히게하고싶은데
소스는 이거입니다
li를 지우면 css에서 설정한게 모두 다시 설정해야되서..
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
?>
<div class="lat">
<h2 class="lat_title"><a href="<?php echo G5_BBS_URL ?>/new.php?gr_id=<?php echo $gr_id ?>"><?php echo $gr_subject; ?></a></h2>
<ul>
<?php for ($i=0; $i<count($list); $i++) { ?>
<li>
<?php
if ($list[$i]['icon_hot']) echo "<span class=\"hot_icon\">H<span class=\"sound_only\">인기글</span></span>";
echo "<a href=\"".$list[$i]['href']."\"> ";
echo $list[$i]['subject'];
echo "</a>";
if ($list[$i]['comment_cnt']) echo " <span class=\"lt_cmt\">+ ".$list[$i]['comment_cnt']."</span>";
?>
</li>
<?php } ?>
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
<li class="empty_li">게시물이 없습니다.</li>
<?php } ?>
</ul>
<a href="<?php echo G5_BBS_URL ?>/new.php?gr_id=<?php echo $gr_id ?>" class="lt_more"><span class="sound_only"><?php echo $gr_subject; ?></span><i class="fa fa-plus" aria-hidden="true"></i><span class="sound_only"> 더보기</span></a>
</div>
답변 3
해당 최신글 스킨 폴더에서 style.css에 가셔서
.lat li {position:relative;font-size:12px;line-height:18px;padding:0px 0;padding-right:50px;padding-left:10px;position:relative;}
부분을
.lat li {position:relative;font-size:12px;line-height:18px;padding:0px 0;padding-right:50px;padding-left:10px;position:relative;list-style: none;}
위와 같이 수정해주시면 됩니다
css에 추가하세요.
.lat > ul, .lat > ul > li { list-style:none; }
/gnuboard/skin/latest/basic_group/style.css
9번째줄
.lat li {position:relative;font-size:12px;line-height:18px;padding:0px 0;padding-right:50px;padding-left:10px;position:relative;list-style: none;}
추가 list-style:none;