This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Grab the id of the category and insert into the is statement. This code is from the Copenhagen Theme--> | |
<li class="blocks-item"> | |
{{#is id 204259447}} | |
<a href="/hc/communities/public/topics" class="blocks-item-link"> | |
<h4 class="blocks-item-title">{{name}}</h4> | |
<p class="blocks-item-description">{{excerpt description}}</p> | |
</a> | |
{{else}} | |
<a href='{{url}}' class="blocks-item-link"> | |
<h4 class="blocks-item-title">{{name}}</h4> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add this code if you would like accordions on your Category Page --> | |
<div class="container-divider"></div> | |
<div class="container"> | |
<nav class="sub-nav"> | |
{{breadcrumbs}} | |
{{search submit=false}} | |
</nav> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Add this to your article page using the Source editor --> | |
<iframe src="https://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="tags"> | |
Tags: {{#each article.labels}} | |
<li class="tag">{{identifier}}<li> | |
{{/each}} | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//hide system fields based on ticket forms(change subdomain and form id) | |
if (window.location.href == "https://yoursubdomain.zendesk.com/hc/en-us/requests/new?ticket_form_id=11111") { | |
$('.request_subject').hide(); | |
$('.request_description').hide(); | |
$('.form-field label:contains("Attachments")').hide(); | |
$('#upload-dropzone').hide(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Limit number of promoted articles on homepage | |
if(typeof $('.promoted-articles ul').get(0) != 'undefined') { | |
var _sectionArticles = $('.promoted-articles ul'); | |
_sectionArticles.each(function(_aidx, _aitm) { | |
var _itmCount = $(_aitm).find('li').length; | |
var _allLink = $(_aitm).prev('h3').find('a').attr('href'); | |
if(_itmCount > 5) { | |
for(var x = (_itmCount - 1); x > 4; x--) { | |
$($(_aitm).find('li')[x]).remove(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Humble Squid boxes clickable | |
$(".category-list li:has(a)").click(function() { | |
window.location = $("a:first",this).attr("href"); | |
}); | |
$(".category-list li").css('cursor', 'pointer'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,200); | |
@import url("https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.5/cyborg/bootstrap.css"); | |
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.css"); | |
body { | |
font-family: 'Source Sans Pro', sans-serif; | |
font-size: 14px; | |
line-height: 1.42857143; | |
color: #333; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Make sure to add Font Awsome CDN to Document Head |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//re-direct end users to My Activities | |
if(HelpCenter.user.role=="end_user"){ | |
location.href="https://yoursubdomain.zendesk.com/hc/en-us/requests/";} |
NewerOlder