最近搜索


没有最近搜索

Dave Kavalsky's Avatar

Dave Kavalsky

已加入2021年5月28日

·

最后活动2021年10月27日

关注

0

关注者

0

活动总数

8

投票

0

订阅

1

活动概览

的最新活动 Dave Kavalsky

Dave Kavalsky 进行了评论,

社区评论 Discussion - Tips and best practices from the community

Thanks!
I actually may have jumped the gun a bit though. Looking at this further, "More..." is no longer rendering either so I might be back to square one but I know that the closing is causing this behavior somehow. If the tag were left open from "More..." through to the "See all" links, we should be good.

查看评论 · 已于 2014年8月22日 发布 · Dave Kavalsky

0

关注者

0

投票

0

评论


Dave Kavalsky 进行了评论,

社区评论 Discussion - Tips and best practices from the community

Hi @Wes and @Janet

Just wanted to post a quick note that I found the culprit of this issue but fixing it seems to have caused another issue. Toward the end of the JS, there is this line of code...

  $("" + linkText +  "").insertAfter($(categories[j]));

This line of code seems to mostly only apply if you have more than 6 articles in a given section. The problem is that it closes the link for the word "More..." and then the .insertAfter($(categories[j])); code adds the "See all # articles" text. So basically, the closing causes "More..." and "See all # articles" to be treated as two separate links because one link closes and the other then opens.

So removing that closing solves the problem while still showing only 3 articles per section but if you have 4-6 articles in the section, it actually no longer shows a link of any kind below the first three articles and I can't figure out why. I'm going to keep digging into this and will keep you guys posted but I feel like I'm getting closer.

查看评论 · 已于 2014年8月22日 发布 · Dave Kavalsky

0

关注者

0

投票

0

评论


Dave Kavalsky 进行了评论,

社区评论 Discussion - Tips and best practices from the community

Hi @Janet

I did notice that but I was able to make an adjustment to the JS that Wes provided to keep them the same size. More specifically, the snippet Wes provided declares the link class as a "MoreTopics" class whereas the normal links use the "see-all-articles" class. By changing "moretopics" to "see-all-articles," the link styling becomes consistent.

I'm also leaning toward just changing the text altogether but I really want to find a way to let users know how many articles are in that section.

查看评论 · 已于 2014年8月19日 发布 · Dave Kavalsky

0

关注者

0

投票

0

评论


Dave Kavalsky 进行了评论,

社区评论 Discussion - Tips and best practices from the community

Thanks @Wes

If possible, I would really like to keep the current wording but as one cohesive link. If I rename it, is there a way for me to dynamically call on the number of articles in the section?

查看评论 · 已于 2014年8月18日 发布 · Dave Kavalsky

0

关注者

0

投票

0

评论


Dave Kavalsky 进行了评论,

社区评论 Discussion - Tips and best practices from the community

Hi @Wes

Just wanted to confirm that I am also using the Swift Elk theme.

查看评论 · 已于 2014年8月18日 发布 · Dave Kavalsky

0

关注者

0

投票

0

评论


Dave Kavalsky 进行了评论,

社区评论 Discussion - Tips and best practices from the community

Thanks! @Wes!

I really appreciate it.

查看评论 · 已于 2014年8月15日 发布 · Dave Kavalsky

0

关注者

0

投票

0

评论


Dave Kavalsky 进行了评论,

社区评论 Discussion - Tips and best practices from the community

Hi Wes,

The sample code has been great but I'm running into an issue with it for any section that has more than 6 articles in it. More specifically, everything renders fine for sections that have 4-6 articles in it but if there are 7 or more articles, "More..." and "See all # articles" underline separately as if they are for separate links. Both links function properly but it's driving me nuts that any section with 7 or more articles looks like "More..." and "See all # articles" are separate links.

Have you seen this before? Do you know how I can fix this?

Thanks!

查看评论 · 已于 2014年8月14日 发布 · Dave Kavalsky

0

关注者

0

投票

0

评论