最近搜索
没有最近搜索

Lynn Beighley
已加入2021年4月16日
·
最后活动2021年10月27日
关注
0
关注者
0
活动总数
2
投票
0
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Lynn Beighley
Lynn Beighley 进行了评论,
社区评论 Discussion - Tips and best practices from the community
Thanks for this! I've got the banner showing up, but it appears on all pages, not just the ones with the label. I must be close, but I don't know how to fix this. I changed the label to search for to "lh4alert". Here's the code (I've hacked the content for testing). Any suggestions?
// MW-Notification Banner
$.get( "/api/v2/help_center/"+$('html').attr('lang').toLowerCase()+"/articles.json?label_names=lh4alert" ).done(function( data ) {
$.each(data.articles, function(index,item) {
var style1 = ' '
$('.alertbox').append(style1);
});
$('.ns-close').on('click',function(){
$(".alertbox").remove();
});
});
查看评论 · 已于 2018年8月16日 发布 · Lynn Beighley
0
关注者
0
投票
0
评论