Recent searches


No recent searches

Lynn Beighley's Avatar

Lynn Beighley

Joined Apr 16, 2021

·

Last activity Oct 27, 2021

Following

0

Followers

0

Total activity

2

Votes

0

Subscription

1

ACTIVITY OVERVIEW

Latest activity by Lynn Beighley

Lynn Beighley commented,

Community comment 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 = '

test

'
           
     $('.alertbox').append(style1);
   });
   $('.ns-close').on('click',function(){
    $(".alertbox").remove();
  });
    
});

 

View comment · Posted Aug 16, 2018 · Lynn Beighley

0

Followers

0

Votes

0

Comments