최근 검색
최근 검색 없음

Greg Pope
가입한 날짜: 2021년 4월 15일
·
마지막 활동: 2021년 11월 02일
팔로잉
0
팔로워
0
총 활동 수
36
투표 수
5
플랜 수
18
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Greg Pope
Greg Pope님이 에 댓글을 입력함
Greg Pope님이 에 댓글을 입력함
Only that the ones with over 6 articles are still two separate links (although you almost can't tell now that they're side by side, both going to the correct url, and I've changed the Morelink's class to "see-all-articles" instead of the default "moreTopics" so they look the same). This basically works.
댓글 보기 · 2015년 7월 24일에 게시됨 · Greg Pope
0
팔로워
0
투표 수
0
댓글
Greg Pope님이 에 댓글을 입력함
Thanks Wes. I switched back to the code at the top of this page and made sure our other js wasn't interfering, and that helped a little bit more (screenshot below). This might work in the meantime while they're looking into it. I'm using the Swiftest Elk theme and I've also started a ticket with Zendesk, #1173791 if they need reference. Really appreciate your help.
댓글 보기 · 2015년 7월 24일에 게시됨 · Greg Pope
0
팔로워
0
투표 수
0
댓글
Greg Pope님이 에 댓글을 입력함
I'm also having trouble with a double link after limiting our displayed articles to 3 and adding the More... link. Has anyone found a way to take out the default "See all...articles" link? The trouble I had with using that was it wouldn't show up for sections that had more than 3 articles but less than 6.
Here is my js:
$(document).ready(function() {
if( document.location.href.indexOf('section') == -1 ) {
var categories = $('ul.article-list');
for (var j = categories.length - 1; j >= 0; j--) {
var articles = $(categories[j]).find('li');
if ( articles.length > 3 ) {
for (var k = 3; k < articles.length; k++ ) {
$(articles[k]).hide();
}
var moreLink = $(categories[j]).parent().find('h3 a').attr('href');
$("More...").insertAfter($(categories[j]));
}
}
}
댓글 보기 · 2015년 7월 21일에 게시됨 · Greg Pope
0
팔로워
0
투표 수
0
댓글