Styles in Internet Explorer 8

If you or your readers will be accessing your knowledge base using Internet Explorer 8, you may notice that the "Search Articles" text is missing from your search boxes as well as blue and green article icons appearing next to your categories and articles. You can fix these issues by adding the code below to your Knowledge Base Look & Feel: 


Copy and paste this code into Custom <head>

<script type="text/javascript">
     $(function(){
          if($.browser.msie && $.browser.version < 9){
               $('.hg-search-bar :input').val('Search Articles');
               $('.hg-search-bar :input').on('focus', function(){
                    $(this).val('');
                });
           };
     });
</script>

Copy and paste this code into Custom CSS

.badge-new {
  display: none;
}

.badge-updated {
  display: none;
}

Copy and paste this code into Custom HTML > Body

<script type="text/javascript">
     $(function(){
          $('.badge-new').each(function(){
               if($(this).text().length < 1){
                    $(this).remove();
                }
          });
          $('.badge-updated').each(function(){
               if($(this).text().length < 1){
                    $(this).remove();
               }
          });
     });
 
     $('.badge-updated').show();
     $('.badge-new').show();
</script>