Ricerche recenti


Nessuna ricerca recente

Lynn Beighley's Avatar

Lynn Beighley

Data ingresso 16 apr 2021

·

Ultima attività 27 ott 2021

Seguiti

0

Follower

0

Attività totali

2

Voti

0

Abbonamento

1

PANORAMICA ATTIVITÀ

Ultima attività di Lynn Beighley

Lynn Beighley ha commentato,

Commento nella community 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();
  });
    
});

 

Visualizza commento · Data ultimo post: 16 ago 2018 · Lynn Beighley

0

Follower

0

Voti

0

Commenti