最近搜索
没有最近搜索

Greg Pope
已加入2021年4月15日
·
最后活动2021年11月02日
关注
0
关注者
0
活动总数
36
投票
5
订阅
18
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 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
评论