Recherches récentes


Pas de recherche récente

Lynn Beighley's Avatar

Lynn Beighley

Adhésion le 16 avr. 2021

·

Dernière activité le 27 oct. 2021

Suivis

0

Abonnés

0

Activité totale

2

Votes

0

Abonnement

1

APERÇU DES ACTIVITÉS

Dernière activité effectuée par Lynn Beighley

Lynn Beighley a ajouté un commentaire,

Commentaire de la communauté 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();
  });
    
});

 

Afficher le commentaire · Publication le 16 août 2018 · Lynn Beighley

0

Abonnés

0

Votes

0

Commentaire