最近の検索
最近の検索はありません

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
コメント